View Single Post
Old 04-10-2009, 07:38 PM   PM User | #1
beth_hansel
New to the CF scene

 
Join Date: Apr 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
beth_hansel is an unknown quantity at this point
Help with Dropdown Menu

Hi,

I have a dropdown menu where I want to eliminate the "go" button and make it more dynamic. My code is below. Can anyone tell me what it is that I have wrong because it's not working.

Thanks!!!


<script language="javascript" type="text/javascript" >
<!-- hide

function jumpto(x){

if (document.form1.jumpmenu.value != "null") {
document.location.href = x
}
}

// end hide -->
</script>

<form action="deluxeSFshop.aspx" name="searchbox" id="searchbox">
<input type='hidden' name='sfid' value=87970 >
<select name="c" id="c" onChange="jumpto(document.form1.jumpmenu.options[document.form1.jumpmenu.options.selectedIndex].value)">
<option value="0" selected>pick boys theme</option>
<option value="156240">animals</option>
<option value="156248">backyardigans</option>
</form>
beth_hansel is offline   Reply With Quote