Thanks, I will look into using :gt() and what it can do. I'm still pretty new
to all this.

In the meantime I changed to using this code which seems to work

        $("table#docstable tr").not("[th]").hover(function() {
                $(this).addClass("trover");
        }, function() {
                $(this).removeClass("trover");
        });

the ("[th]") part being what I think I was missing, I didn't know that using
[] would include child elements in the search.

Cheers



nileshp wrote:
> 
> Sure, you can do a few things
> 
> one is you can off set the start with :gt(1)  as in
> 
> $("#docstable
> tr:gt(1)").not(".headingrow").mouseover(function(){$(this).addClass("trover")});
> 
> for older jquery versions you may need :gt(0)  v/s :gt(1)
> 
> this way you are skipping the first table row.
> 
> suggestion to add table before your id# tag, this would help speed up tiny
> bit.
> $("table#docstable
> tr:gt(1)").not(".headingrow").mouseover(function(){$(this).addClass("trover")});
> 
> 
> Nilesh
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Selecting-all-other-siblings-tf3215034.html#a8928843
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to