jquery中獲取select選中值的代碼
更新時間:2011年06月27日 23:18:10 作者:
jquery中獲取select選中值的代碼,需要的朋友可以參考下。
jquery獲取select選擇的文本與值
獲取select 選中的 text : $("#ddlregtype").find("option:selected").text();
獲取select選中的 value: $("#ddlregtype ").val();
獲取select選中的索引: $("#ddlregtype ").get(0).selectedindex;
獲取select 選中的 text : $("#ddlregtype").find("option:selected").text();
獲取select選中的 value: $("#ddlregtype ").val();
獲取select選中的索引: $("#ddlregtype ").get(0).selectedindex;
您可能感興趣的文章:
相關(guān)文章
jQuery UI結(jié)合Ajax創(chuàng)建可定制的Web界面
這篇文章主要為大家詳細介紹了jQuery UI結(jié)合Ajax創(chuàng)建可定制的Web界面,如何利用Ajax和jQuery UI創(chuàng)建具有各種定制功能的高度可定制的UI,感興趣的小伙伴們可以參考一下2016-06-06
使用DataTable插件實現(xiàn)異步加載數(shù)據(jù)
本文給大家分享的是Jquery+dataTable插件來實現(xiàn)異步加載數(shù)據(jù)的示例代碼,非常實用,有需要的小伙伴可以參考下2017-11-11
jQuery中slideUp 和 slideDown 的點擊事件
這篇文章主要介紹了jQuery中slideUp 和 slideDown 的點擊事件的相關(guān)資料,需要的朋友可以參考下2015-02-02
jQuery EasyUI中對表格進行編輯的實現(xiàn)代碼
對表格進行增刪改后一次性保存或回滾的發(fā)生相當有用。參照官方的教程例子做了個用戶管理的小例子。2010-06-06

