html:
<tr id="tr">
<td>Somthing</td>
<td>Somthing</td>
<td>Somthing</td>
<td>Somthing</td>
</tr>
滑动分页
$("#tr").click(function(){
// something happen
});
因此,问题是:
点击效果显然会得到<;tr>代码>
当我点击<;tr>代码>?
编辑:
如果我有超过1 tr
<tr class="tr">
<td>Somthing</td>
<td>Somthing</td>
<td>Somthing</td>
<td>Somthing</td>
</tr>
<tr class="tr">
<td>Somthing</td>
<td>Somthing</td>
<td>Somthing</td>
<td>Somthing</td>
</tr>
the solution td:lt(4)
will only work in the first tr
ps.: i neeed to identify the tr, because i have another stuffs around the code working with tr s
我的真实代码是:
$(".class td:lt(6)").live("click", function(){
});