It may sound stupid but how do i make a dropdown box where the options work as hyperlinks?
Printable View
It may sound stupid but how do i make a dropdown box where the options work as hyperlinks?
Only one I could find ;)
=)
If you dont like it, search around - you'll find one!
Ive sorted it now thanks though! +rep ;)
I wont post the code, because the best way to learn is to think. But basically, in PHP you could do a if to see if a form has been posted. Then, if it has it executes a JavaScript thingy to change the page, if the if says the form hasn't been posted echo the form. There is probably a simple JavaScript way, but i don't like JavaScript.
Yeh its javascript, on dreamweaver its called spry watever that means
Simple.HTML Code:<select name="name">
<option onClick="javascript:window.location = 'http://google.com';">Google</option>
</select>