jquery <s:radio 单选扭添加change事件
因为<s:radio的id,解析完之后会自动在id后边加数字,所以事件需要通过class来添加
<s:radio cssClass="test" id="test" name="test.test" list="#{0:'女',1:'男'}" listKey="key" listValue="value" value="0"/> $(".test").change(function() { var test = $("input[name='test.test']:checked").val(); });
相关推荐
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