$('#typeoption:selected').val();
$('#type').val();
酱紫就可以了。
$('#type').val()
请使用$('#type').prop('value');去获取被选中的下拉项的值
首先能否把你的jQuery代码贴一下,问得模棱两可。
你至少说清楚你期望是什么?
select没有type="text"属性
$('#type').val();//0
如何你需要乘客
$('#type').find('option:checked').text();//乘客
$("select").find("option:selected").text();