Jquery获得 selection的text 和 option值
<select id="accountStatus" editable="false" style="80px" >
<option value="all">all</option>
<option value="active">active</option>
<option value="inactive">inactive</option>
</select>
获得text值
var accountStatus = $("#accountStatus option:selected").text();
获得option值
var accountStatus = $("#accountStatus").val(); ;
<option value="all">all</option>
<option value="active">active</option>
<option value="inactive">inactive</option>
</select>
获得text值
var accountStatus = $("#accountStatus option:selected").text();
获得option值
var accountStatus = $("#accountStatus").val(); ;