获取select的option值 $(‘#selectedSubject option‘).eq(0).val(); 获取select的选中option值 $(‘#selectedSubject option:selected‘).val(); 设置select的选中值 $("#selectedSubject").prop(‘value‘ , $(‘#selectedSubject option:selected‘).val());
获取select的option值 $(‘#selectedSubject option‘).eq(0).val(); 获取select的选中option值 $(‘#selectedSubject option:selected‘).val(); 设置select的选中值 $("#selectedSubject").prop(‘value‘ , $(‘#selectedSubject option:selected‘).val());