[jQuery] Re: tutorial needs additional material

2007-07-07 Thread sozzi
The use of the "this" keyword is always a bit tricky to wrap your head around, but these two posts helped me to understand things at a fundamental level: "this" in general javascript : http://www.quirksmode.org/js/this.html and a bit more jQuery specific: http://groups.google.com/group/j

[jQuery] Re: tutorial needs additional material

2007-07-06 Thread Josh Nathanson
If each of your target td's has a class "clicktd"... $(".clicktd").click(function() { $(this).siblings("td:eq(1)").children("div.class").show(); }); Something close to that should work...someone will jump in and correct me I'm sure! Basically on an event such as click, $(this) will point

[jQuery] Re: tutorial needs additional material

2007-07-06 Thread Glen Lipka
http://www.visualjQuery.com is a great resource too. I cant remember anything without it., I whipped up a demo. Is this it? http://www.commadot.com/jquery/selectors/tables.htm Glen PS. I had some trouble figuring out how to select all the first tds. Anyone have a better method than me? On