HTML: <tr id="test_wf" class="tableEvenRow" onclick="detailNode();">
<td width="3%" class="bottomTab"><input name='mgmnt_flg_check_box2' type='checkbox'/></td>
<td width="4%" class="bottomTab"><input name='snmp_flg_check_box2' type='checkbox'/></td>
<td width="10%" class="bottomTab">127.0.0.1</td>
<td width="7%" class="bottomTab">aa</td>
<td width="10%" class="bottomTab">bb</td>
</tr>
<tr id="test_wf" class="tableEvenRow" onclick="detailNode();">
<td width="3%" class="bottomTab"><input name='mgmnt_flg_check_box2' type='checkbox'/></td>
<td width="4%" class="bottomTab"><input name='snmp_flg_check_box2' type='checkbox'/></td>
<td width="10%" class="bottomTab">127.0.0.2</td>
<td width="7%" class="bottomTab">cc</td>
<td width="10%" class="bottomTab">dd</td>
</tr>
JS:
function detailNode() {
window.open ('mgmnt_node_detail.html? IFIPAddress="11.11.11.11"','newwindow','height=800,width=1280,left=50,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,status=no'); }
在HTML中,多个TR的ID相同,该TR绑定了onclick="detailNode();" 事件,问:如何拿到当前点击的第三个TD的文本?
TR TD 的class,id,JS方法名定义不能修改!
|
|