I ended up with this..
$(function()
{
$("#stateHolder > div").hide();
$("#stateList").change( function(){
var $el= $('#' + $(this).val() );
if ( $("#stateHolder > div:visible").length == 0) {
$el.show
try this:
$( function() {
$("#stateHolder > div").hide();
$("#stateList").change( function() {
$("#stateHolder > div").hide();
$("#" + $(this).val() ).show();
});
});
--
Viele Grüße, Olaf
---
[EMAIL PROTECTED]
http://olaf-bosch
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
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
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
5 matches
Mail list logo