获取特定tr内的checkbox属性值解决办法

获取特定tr内的checkbox属性值
JScript code
<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>


根据node-id取得checkbox是否选中

------解决方案--------------------
jquery方式:
JScript code
$('tr').find('input').each(function(){
if(this.getAttribute('node-id') ==nodeID) //这里nodeID为你tr的属性nodeId的值
  alert(this.checked);//this.checked为checkbox的属性
});