Hi,

I created one Dropdown menu like --Jump To--- .
a)google
b)Daniweb
When i click on the Jump To menu it displys two or more options like google or daniweb like above. When i click on the google it must call to hyper link and displays google website and daniweb as well. I hope you all understand. But i being failed to do this task. Could you please help out me regarding of this!!!

Yeah. I got your point. It was nice thinking actually. keep it up. Try this below code:

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

function jumpto(x){

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

// end hide -->
</script>
</head>
<body>
<form name="form1">
<select name="jumpmenu" onChange="jumpto(document.form1.jumpmenu.options[document.form1.jumpmenu.options.selectedIndex].value)">
<option>Jump to...</option>
<option value=http://www.daniweb.com>daniweb</option>
<option value=http://google.com>Google</option>
</select>
</form>
</body>
</html>
commented: Awsome Code yar. Your my hero!!! +0
commented: Better one... +0

Wow!!! It's really nice code. What a thinking you are!!! It was working greatly to me. Thank you very much...:)

Not much surpraised. It's simple code. Thanks for your reputation comments.

That is really good!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.