操作<Select> 物件
$("#test").find('option:selected').text(); //取得選取項的text文字
$("#test").find('option:selected').val(); //取得選取項的value值
操作<input> 物件
$("#test").val(); //取得value值
文章標籤
全站熱搜
操作<Select> 物件
$("#test").find('option:selected').text(); //取得選取項的text文字
$("#test").find('option:selected').val(); //取得選取項的value值
操作<input> 物件
$("#test").val(); //取得value值

菲力貓的程式設計
felixhuang 發表在 痞客邦 留言(0) 人氣(371)