Re: [jQuery] dynamic id's for show/hide toggle?

2007-01-30 Thread Karl Swedberg
hey James, sorry I haven't had a chance to reply to your comment on learningjquery.com yet. But it looks like you've got it figured out anyway. Good job. You might also want to take a look at one of the accordion plugins. You can find them here: http://docs.jquery.com/Plugins#Navigation

Re: [jQuery] dynamic id's for show/hide toggle?

2007-01-30 Thread Priest, James \(NIH/NIEHS\) [C]
ry 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(

Re: [jQuery] dynamic id's for show/hide toggle?

2007-01-30 Thread Priest, James \(NIH/NIEHS\) [C]
: Tuesday, January 30, 2007 2:42 PM > To: jQuery Discussion. > Subject: Re: [jQuery] dynamic id's for show/hide toggle? > > Unfortunately I'm behind a firewall :( > > Basically I'm looping over a query returned from a database... > > >

Re: [jQuery] dynamic id's for show/hide toggle?

2007-01-30 Thread Brandon Aaron
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);

Re: [jQuery] dynamic id's for show/hide toggle?

2007-01-30 Thread Priest, James \(NIH/NIEHS\) [C]
Unfortunately I'm behind a firewall :( Basically I'm looping over a query returned from a database... This requirement description [+] Show/hide requirement details List

Re: [jQuery] dynamic id's for show/hide toggle?

2007-01-30 Thread Brandon Aaron
I'm a little confused about what you are needing. Could you show an example of what is currently up? That would also show the structure of your code. You might just be able to use selectors instead of IDs to find the elements you want to show/hide. -- Brandon Aaron On 1/30/07, Priest, James (NIH/

[jQuery] dynamic id's for show/hide toggle?

2007-01-30 Thread Priest, James \(NIH/NIEHS\) [C]
I'm just getting started with jquery so bear with me :) I'm working on displaying a dynamic list generated with ColdFusion. I found the "slicker show/hide" tutorial and have that working - but need to show/hide elements on each row of my list. Right now it works - but when I click my show/hide l