+ 2

How to use select tag within link new page

<select>

15th Mar 2017, 12:40 PM
Abhishek Dandriyal
Abhishek Dandriyal - avatar
2 ответов
+ 11
<select name="forma" onchange ="location = this.value;"> <option value="Home.php">Hom e</option> <option value="Contact.php"> Contact</option> <option value="Sitemap.php"> Sitemap</option> </select>
2nd Apr 2017, 7:44 AM
Awele Omeligwe
Awele Omeligwe - avatar
+ 9
or you can use javascript to do so like this <code> <select name="formal" onchang e="javascript:handleSelect(th is)"> <option value="home">Home</op tion> <option value="contact">Conta ct</option> </select> <script type="text/javascript "> function handleSelect(elm) { window.location = elm.value+" .php"; } </script></code>
2nd Apr 2017, 7:47 AM
Awele Omeligwe
Awele Omeligwe - avatar