jquery操作radio
<p> <label>组件属性:</label> <input type="radio" onclick="chooseProperty()" name="property" value="0" {if !$info[property] || $info[property]==0}checked{/if} />公共组件 <input type="radio" onclick="chooseProperty()" name="property" value="1" {if $info[property]==1}checked{/if} />特殊模板组件 </p>
用jquery获取radio数据
function chooseProperty(){ var item = $("input[name='property']:checked").val(); alert(item); }
相关推荐
zhanghaibing00 2020-06-28
MaureenChen 2020-05-25
风飞飘扬 2014-06-24
lbPro0 2019-11-03
donghongbz 2019-10-19
85931235 2012-01-11
yFifhting 2017-06-08
NARUTOLUOLUO 2019-07-01
人心 2019-06-30
攻城师 2019-06-29
HotStrong 2017-06-08
zfjdoreen 2016-04-13
89367741 2016-03-30
shiyiboke 2016-03-29
SinhaengHhjian 2016-01-25
89453862 2015-10-10