标签:lol rop ref 循环 this box put jquery on()
代码:
$(function(){ $("#checkAllOld").click(function() { $("input[id^=‘box_old_‘]").prop("checked", this.checked); }); });
循环显示出的数据:
if(obj.status=="1"){ h += ‘<td><input type="checkbox" id="box_old_‘+i+‘" name="‘+obj.operId+‘" value="‘+obj.id+‘"></td>‘; }else{ h += ‘<td></td>‘; } h += ‘<td data-toggle="modal" data-target="#div_orderDetail"><a href="#" onclick="showOrderDetail(\‘‘+obj.operId+‘\‘)">‘+obj.operId+‘</a></td>‘; }
标签:lol rop ref 循环 this box put jquery on()
原文地址:https://www.cnblogs.com/JAYIT/p/11287830.html