JQ 获取Table的td 值
<script type="text/javascript">
function SetTable()
{
$("#myTab table").each(function ()
{
var sValue= $(this).find("tr").eq(0).find("td").eq(0).html();
alert(sValue);
})
}
</script>
<input type="button" value="111" id="mytext" onclick='SetTable()' >
<div id="myTab">
<table width="60%" id="table1" border="1px">
<tr>
<td id="td1">5</td>
<td id="td2">6</td>
</tr>
<tr>
<td>7</td>
<td>8</td>
</tr>
</table>
<table width="60%" border="1px">
<tr>
<td id="td1">1</td>
<td id="td2">2</td>
</tr>
<tr>
<td>3</td>
<td>4</td>
</tr>
</table>
</div>