0
ドロップダウンメニューで「その他」オプションを選択した後、ドロップダウンメニューの後に新しい入力フィールドを表示したいが、何も起こっていない。ドロップダウンメニューのオプションを選択した後に新しい入力フィールドを追加する
<div style="margin-right:20px" id='degree'>
<label for='college_name'>Degree</lable></br>
<select style="width: 400px" class='degree-selected'>
<option>High school</option>
<option>Bachler's degree</option>
<option>Master's degree</option>
<option>Doctor of philosophy (Ph.D)</option>
<option id='hello'>other</option>
</select>
</div>
<script type="text/javascript">
$(document).ready(function(){
$("#hello").click(function(){
alert('degree');
$('#degree').append('<div style="margin-right:20px;"><label for="college_name"></lable><input type="text" placeholder=""></div>');
});
});
</script>