jquery根据name取得select选中的值实例(超简单)
实例如下所示:
<select name="region[province]" id="" class="region valid"> <option value="0" selected="selected" tier="1">省、直辖市</option> <option tier="1" value="2">北京市</option> </select> var province = $("select[name='region[province]']").val(); 取得textarea的值 <textarea id='address'></textarea > $("#textarea ").val()
相关推荐
zengni 2020-04-16
Vipwxs 2018-12-19
javaer 2008-09-02
jscjxysx 2019-07-01
冯二爷 2019-07-01
Donutsapps 2019-06-29
无情 2018-12-19
87281248 2017-09-28
原為簡單 2017-09-28
web开发 2017-01-16
勤能补拙孰能生巧 2019-06-28
wndong 2015-12-14
shishaoe 2015-04-10
csstpeixun 2015-04-02
xiaocaibai 2014-12-19
realitycss 2014-05-05
DreamLee 2013-12-13
切慕溪水 2013-07-11
lkj0 2013-05-24