<@checkbox>
<#--遍历型-->
<#list applyPatcoltDtos as appltchBoltDto>
<#if applyPahBoltDto.iathBolt><#--已经勾选-->
<label><input type="checkbox" id="bb" data-ar-value_split="," name="checkBox" checked="true"/>${(appltchBoltDto.applyPaltTitle)} </label>
<#else>
<label><input type="checkbox" id="bb"data-ar-value_split="," name="checkBox" />${(applyPatcoltDto.applyPatcBoltTitle)} </label>
</#if>
</#list>
</@checkbox>
形如上面这种有list输出到前台的一组复选框,怎么点击其中一个可以触发jquery事件呢?
jquery代码:
$('[type="checkbox"]').click(function(){
$("#subButton").removeAttr("disabled");
})
这样就OK了