select 取值:
$('select').val();? //獲取當(dāng)前選中項(xiàng)option的value?
$("select").find("option:selected").text(); //獲取當(dāng)前選中項(xiàng)option的text?
select 賦值:
var num = '123'? ?//定義一個(gè) num
$('select').val(num);? //選中option的value為num的項(xiàng)
$("select").find("option[text='num']").attr("selected",true);??//選中option的text為num的項(xiàng)