操作<Select> 物件

$("#test").find('option:selected').text();  //取得選取項的text文字
$("#test").find('option:selected').val();   //取得選取項的value值

操作<input> 物件
$("#test").val();   //取得value值

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