jQuery("tableid").children("tr").each(function(){
jQuery("tr").children("td").not(":eq(1),:eq(2").each(function(){
jQuery(this).css("color","red");
..或其他操作..
});
});
像这样遍历方式 。 我的div层里的table下所有tr 中的 除了最后两列或多列 的其他td进行操作应该怎样进行。。
像我的not() 这样只执行了第一行其他行无效了。。怎回事呢??
这个简单
$("tr").each(function(i){
if(i>2)
$("tr:eq("+i+")>td").css("color","red");
});