[jQuery] Re: Show a Div based on a Dropdown selection

2008-09-19 Thread ButtersRugby
I ended up with this.. $(function() { $("#stateHolder > div").hide(); $("#stateList").change( function(){ var $el= $('#' + $(this).val() ); if ( $("#stateHolder > div:visible").length == 0) { $el.show

[jQuery] Re: Show a Div based on a Dropdown selection

2008-09-19 Thread Olaf Bosch
try this: $( function() { $("#stateHolder > div").hide(); $("#stateList").change( function() { $("#stateHolder > div").hide(); $("#" + $(this).val() ).show(); }); }); -- Viele Grüße, Olaf --- [EMAIL PROTECTED] http://olaf-bosch

[jQuery] Re: Show a Div based on a Dropdown selection

2008-09-19 Thread ButtersRugby
I have been trying to figure it out in Jquery, despite being new and quite un-experienced with Javascript. Here are a few bits of what i have so far. I know that i need to hide all of the child divs (the ones that will show and hide) on load.. Then as for my event...I need to grab the value out o

[jQuery] Re: Show a Div based on a Dropdown selection

2008-09-19 Thread ButtersRugby
I got it to work. $(function() { $("#stateHolder > div").hide(); $("#stateList").change( function(){ $("#" + $ (this).val() ).show() } ); }); Now I need to figure out how to hide the other divs before loading the new one. Is there anyone who can help

[jQuery] Re: Show a Div based on a Dropdown selection

2008-09-18 Thread ripple
I've had to do this exact thing. Do a search on it.   onchange() or change() depends on whether your using javascript or jQuery.   You might not be getting any guidance or help, cause your not showing any attempts other than html.     http://www.2whoa.com/dominate   --- On Thu, 9/18/08, ButtersR