下拉之後的值

$("#ID option:selected").text();

移除選項

$("#ID option:selected").remove();

設定某選項

$("#selectID").children().each(function(){
if ($(this).text()=="option name")
$(this).attr("selected","true");
});
創作者介紹
創作者 人人都在"搜尋" 的頭像
kpnweb

人人都在"搜尋"

kpnweb 發表在 痞客邦 留言(0) 人氣( 114 )