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 to whatever was
clicked, so that's the starting point for any DOM traversal that follows.
-- Josh
----- Original Message -----
From: "Rick Pasotto" <[EMAIL PROTECTED]>
To: "jquery" <jquery-en@googlegroups.com>
Sent: Friday, July 06, 2007 3:35 PM
Subject: [jQuery] tutorial needs additional material
In the main tutorial http://docs.jquery.com/How_jQuery_Works the third
section is "3. Callbacks, Functions, and 'this'" however there is no
discussion or even a mention of 'this'.
Could someone who understands it help this newbie out?
The specific thing I'm trying to figure out is, given a lists of <tr>s
how can I attach a click() to the first <td> of each <tr> that does a
show() on a div.class in the third <td> of that <tr>?
--
"I'll take unequal justice to equal injustice any day."
Rick Pasotto [EMAIL PROTECTED] http://www.niof.net