下拉之後的值

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

移除選項

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

設定某選項

$("#selectID").children().each(function(){
if ($(this).text()=="option name")
$(this).attr("selected","true");
});
arrow
arrow
    全站熱搜

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