2009-08-27 43 views

回答

2
$("#experiences tr:gt(0)").dblclick(function() { 
    $(this).remove(); 
}); 

$("#experiences tr:not(:first)").dblclick(function() { 
    $(this).remove(); 
}); 

只排除第二行:

$("#experiences tr:not(:eq(1))").dblclick(function() { 
    $(this).remove(); 
}); 
+0

如果我想排除第二行,該怎麼辦? – omg 2009-08-27 07:13:39

+0

只是第二排? – 2009-08-27 07:14:09

+0

爲什麼不存在「不相等」的ne? – omg 2009-08-27 07:15:49

2

最好使用一個類的行。

爲要連線雙擊事件的行添加一個類,它會更容易。

相關問題