Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
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
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:16 PM.


Advertisement
Log in to turn off these ads.