标签:style blog color io ar sp div on cti
$(‘.selector‘).attr("checked", true);
<s:iterator value="jobSelect" id="jobLink2"> <s:iterator value="jobLink2" id="job2"> var arr = $(‘.selector‘); var a = ${job2.id}; $(‘.selector‘).each(function(){ if($(this).val()== ${job2.id}){ $(this).attr("checked", true); } }); </s:iterator> </s:iterator>
标签:style blog color io ar sp div on cti
原文地址:http://www.cnblogs.com/kennyliu/p/4027015.html