Brandon - thanks much!! That looks similar to the solution I just posted. I'll check out the docs and read up on these methods - I didn't know where to begin looking! :)
Jim > -----Original Message----- > From: Brandon Aaron [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 30, 2007 2:54 PM > To: jQuery Discussion. > Subject: Re: [jQuery] dynamic id's for show/hide toggle? > > Oh okay ... just do something like this: > > $(function() { // document.ready > $('.details').hide(); > $('a.slick-toggle').bind('click', function() { > $(this) > .parent() // the p tag > .next('div.details') // the details we want > .toggle(400); > }); > }); > > Untested but that should at least point you in the right direction. > Check out the API docs for DOM / Traversing for more info on the > parent() and next() method. > _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
