用 Jquery 怎么找到 红字部分的 td 谢谢了<table cellspacing="0" rules="all" border="1" id="GridView1" style="border-collapse:collapse;">
<tr>
<th scope="col">文字</th><th scope="col">文字</th><th scope="col">文字</th><th scope="col">
文字
</th><th scope="col"> </th>
</tr><tr>
<td>060301</td><td>dfdsdsg</td><td>11111</td><td>
<span id="GridView1_ctl02_Label1">文字</span>
</td><td>
文字<input type="image" name="GridView1$ctl02$ImageButton1" id="GridView1_ctl02_ImageButton1" src="../images/edt.gif" style="border-width:0px;" />
文字<input type="image" name="GridView1$ctl02$ImageButton2" id="GridView1_ctl02_ImageButton2" src="../images/del.gif" style="border-width:0px;" />
</td>
</tr><tr>
<td>060399</td><td>文字</td><td>23232</td><td>
<span id="GridView1_ctl03_Label1">文字</span>
</td><td>
文字<input type="image" name="GridView1$ctl03$ImageButton1" id="GridView1_ctl03_ImageButton1" src="../images/edt.gif" style="border-width:0px;" />
文字<input type="image" name="GridView1$ctl03$ImageButton2" id="GridView1_ctl03_ImageButton2" src="../images/del.gif" style="border-width:0px;" />
</td>
</tr><tr>
<td>4356</td><td>trtrt</td><td>654646</td><td>
<span id="GridView1_ctl04_Label1">文字</span>
</td><td>
文字<input type="image" name="GridView1$ctl04$ImageButton1" id="GridView1_ctl04_ImageButton1" src="../images/edt.gif" style="border-width:0px;" />
文字<input type="image" name="GridView1$ctl04$ImageButton2" id="GridView1_ctl04_ImageButton2" src="../images/del.gif" style="border-width:0px;" />
</td>
</tr><tr>
<td>5465643</td><td>trtrt</td><td>654646</td><td>
<span id="GridView1_ctl05_Label1">文字</span>
</td><td>
文字<input type="image" name="GridView1$ctl05$ImageButton1" id="GridView1_ctl05_ImageButton1" src="../images/edt.gif" style="border-width:0px;" />
文字<input type="image" name="GridView1$ctl05$ImageButton2" id="GridView1_ctl05_ImageButton2" src="../images/del.gif" style="border-width:0px;" />
</td>
</tr><tr>
<td colspan="5"><table border="0">
<tr>
<td><span>1</span></td><td><a href="javascript:__doPostBack('GridView1','Page$2')">2</a></td><td><a href="javascript:__doPostBack('GridView1','Page$3')">3</a></td>
</tr>
</table></td>
</tr>
</table>
<tr>
<th scope="col">文字</th><th scope="col">文字</th><th scope="col">文字</th><th scope="col">
文字
</th><th scope="col"> </th>
</tr><tr>
<td>060301</td><td>dfdsdsg</td><td>11111</td><td>
<span id="GridView1_ctl02_Label1">文字</span>
</td><td>
文字<input type="image" name="GridView1$ctl02$ImageButton1" id="GridView1_ctl02_ImageButton1" src="../images/edt.gif" style="border-width:0px;" />
文字<input type="image" name="GridView1$ctl02$ImageButton2" id="GridView1_ctl02_ImageButton2" src="../images/del.gif" style="border-width:0px;" />
</td>
</tr><tr>
<td>060399</td><td>文字</td><td>23232</td><td>
<span id="GridView1_ctl03_Label1">文字</span>
</td><td>
文字<input type="image" name="GridView1$ctl03$ImageButton1" id="GridView1_ctl03_ImageButton1" src="../images/edt.gif" style="border-width:0px;" />
文字<input type="image" name="GridView1$ctl03$ImageButton2" id="GridView1_ctl03_ImageButton2" src="../images/del.gif" style="border-width:0px;" />
</td>
</tr><tr>
<td>4356</td><td>trtrt</td><td>654646</td><td>
<span id="GridView1_ctl04_Label1">文字</span>
</td><td>
文字<input type="image" name="GridView1$ctl04$ImageButton1" id="GridView1_ctl04_ImageButton1" src="../images/edt.gif" style="border-width:0px;" />
文字<input type="image" name="GridView1$ctl04$ImageButton2" id="GridView1_ctl04_ImageButton2" src="../images/del.gif" style="border-width:0px;" />
</td>
</tr><tr>
<td>5465643</td><td>trtrt</td><td>654646</td><td>
<span id="GridView1_ctl05_Label1">文字</span>
</td><td>
文字<input type="image" name="GridView1$ctl05$ImageButton1" id="GridView1_ctl05_ImageButton1" src="../images/edt.gif" style="border-width:0px;" />
文字<input type="image" name="GridView1$ctl05$ImageButton2" id="GridView1_ctl05_ImageButton2" src="../images/del.gif" style="border-width:0px;" />
</td>
</tr><tr>
<td colspan="5"><table border="0">
<tr>
<td><span>1</span></td><td><a href="javascript:__doPostBack('GridView1','Page$2')">2</a></td><td><a href="javascript:__doPostBack('GridView1','Page$3')">3</a></td>
</tr>
</table></td>
</tr>
</table>
解决方案 »
- JQuery实现鼠标滑过表格时只有偶数行换颜色的问题,急等解决!!!
- 小女子请教高手onbeforeunload 不执行的问题。
- 怎样用javascript获取datalist中某一行某一列的值?
- 请问这个是怎么加密的?解密后代码是??谢谢!
- 谁有语法高亮的js代码?
- 一个简单问题,解决即结贴!
- 烦琐的日期校验问题--在页面实现
- 级联菜单怎么做啊。
- 页面有一个文本文件的链接,想要在点击时不显示文件内容,而是下载,怎么办?
- 如何将iframe的内容去掉html标签后赋值到textarea中?
- 一个简单的setTimeout问题,请问为什么不能随时间连续执行?
- 如何做到form目标php页完全执行后才执行后续的js代码?
var menu_dd = document.getElementById('GridView1').getElementsByTagName('table');
alert(menu_dd.length);
var std=menu_dd[0];
alert(std);整个表格就获取到了!