[jQuery] Re: Select > Option (find class of option)

2007-11-06 Thread benjam
Please tell us what you did to get it working. And this goes for all other people asking questions and then figuring out a solution on your own... There may be other people with a similar problem who see your question and think there will be a solution to their problem at the end of the thread,

[jQuery] Re: Select > Option (find class of option)

2007-11-05 Thread [EMAIL PROTECTED]
Oh got it, nevermind. On Nov 6, 9:06 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Cheers for that! > It doesn't work though. I should point out that the divs with the IDs > are elsewhere in the document, not near the select - but that > shouldn't matter should it? > Is there some way I c

[jQuery] Re: Select > Option (find class of option)

2007-11-05 Thread [EMAIL PROTECTED]
Cheers for that! It doesn't work though. I should point out that the divs with the IDs are elsewhere in the document, not near the select - but that shouldn't matter should it? Is there some way I can debug it to print out the ID so I can make sure it's doing what I want it to do? On Nov 5, 7:23

[jQuery] Re: Select > Option (find class of option)

2007-11-05 Thread Wizzud
This is all you need inside the change() function... $('#' + $('option:selected', this).attr('class')).show(); On Nov 5, 1:38 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > $(document).ready(function() { > $('div.hidden').hide(); > $('#node-58 > select.state').