jQueryのchildren関数の不思議
なぜかchildrenの帰り値はjQueryオブジェクトじゃない
$(".bonus_type").change(function(){ var $selected_option = $(this).children('option:selected')[0]; var selected_index = $selected_option.value; // NG //var selected_index = $selected_option.val(); });