循环所有tr 然后 $("tr").eq(i).find("td:eq(第几列)")
可以 写详细点吗
@l25321937:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script src="http://images.juren.com/jr2010/js/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
$(function()
{
$("table tr").each(function()
{
alert($(this).find("td").eq(1).html());
})
})
</script>
</head>
<body>
<table>
<tr>
<td>x</td>
<td>x1</td>
<td>x</td>
</tr>
<tr>
<td>x</td>
<td>x2</td>
<td>x</td>
</tr>
<tr>
<td>x</td>
<td>x3</td>
<td>x</td>
</tr>
<tr>
<td>x</td>
<td>x4</td>
<td>x</td>
</tr>
</table>
</body>
</html>
遗漏正解,我就不写了。网上下载一个jquery的api看看就会了。