hukadeeze Posted April 6, 2007 Share Posted April 6, 2007 I'm trying to create a drop down box that contains different links. I want the user to be able to select a link from the drop down box, and then click it once the box has closed. Basically, I don't want the user to be redirected once an option is selected. I have this, but the options are not showing up as links: <select> <option><a href="http://www.yahoo.com">Yahoo!</a></option> <option><a href="http://www.google.com">Google</a></option> <option><a href="http://www.ebay.com">eBay</a></option> </select> Link to comment https://forums.phpfreaks.com/topic/45862-links-inside-drop-down-box/ Share on other sites More sharing options...
gluck Posted April 6, 2007 Share Posted April 6, 2007 you might have to use a work around. use on click to detect an event and call a javascript function that redirects to the URL by getting the selected index. I don't think you will be able to make it as a link. Link to comment https://forums.phpfreaks.com/topic/45862-links-inside-drop-down-box/#findComment-223038 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.