using href links inside <option> tag

Posted by makmour on Stack Overflow See other posts from Stack Overflow or by makmour
Published on 2010-01-04T16:44:50Z Indexed on 2010/04/18 17:33 UTC
Read the original article Hit count: 345

Filed under:
|
|
|

I have the following html code:

<select name="forma">
<option value="Home">Home</option>
<option value="Contact">Contact</option>
<option value="Sitemap">Sitemap</option>
</select>

how can i make Home, Contact and Sitemap values as links? i used the following code an as i expected it didnt work,

<select name="forma">
<option value="Home"><a HREF="home.php">Home</a></option>
<option value="Contact"><a HREF="contact.php">Contact</a></option>
<option value="Sitemap"><a HREF="sitemap.php">Sitemap</a></option>
</select>

© Stack Overflow or respective owner

Related posts about anchor

Related posts about option