jQuery select all except first or a specific one
Use jquery's selector and related methods to select all elements but not include the first (or a specific one) element. There are several ways.
:not and :first selector
The jquery api about :not selector 和 :first selector.
$("tr:not(:first)").css( "font-style", "italic" );
:eq selector
The jquery api about :eq selector
$("tr:not(:eq(0))").css( "color", "red" );
not method
The jquery api about not function.
$("div").not(":eq(0)").css("border-color", "red");
:gt selector
The jquery api about gt selector.
$("tr:gt(0)").css("backgroundColor", "yellow");
slice method
The jquery api about slice method.
$("div.test").slice(1).hide();