日期:2014-05-16 浏览次数:20385 次
<table cellspacing="0" cellpadding="0" border="0"> <tbody> <tr class="datagrid-row" node-id="000000012" style="height: 25px; "> <td field="SELECTED"> <div style="text-align: left; width: 15px; height: 15px; " class="datagrid-cell-check "> <input type="checkbox"> </div> </td> </tr> </tbody> </table>
$('tr').find('input').each(function(){ if(this.getAttribute('node-id') ==nodeID) //这里nodeID为你tr的属性nodeId的值 alert(this.checked);//this.checked为checkbox的属性 });