+ 2

How can i make the option of the datalist make me open an another page when i click on it ?

<input type="search" value="search" placeholder="search.." list="sch"> <datalist id="sch"> <option value="one"> <option value="two"> <option balue="three"> </datalist> Should i use href attribute or another attribute ?

23rd Dec 2019, 3:50 PM
Mo dix
Mo dix - avatar
1 Resposta
+ 5
<option value = "main"> <a href="main.html"> Main </a> </option> seems to work, then check through the html validator
23rd Dec 2019, 4:05 PM
Anna/Аня
Anna/Аня - avatar