CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   JavaScript frameworks (http://www.codingforums.com/forumdisplay.php?f=62)
-   -   Help with Dropdown Menu (http://www.codingforums.com/showthread.php?t=163590)

beth_hansel 04-10-2009 07:38 PM

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>


All times are GMT +1. The time now is 12:55 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.