Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Add a link to Bootstrap Select Options

Hi I'm trying to add a link to a Bootstrap Select Option. How I do that

This is my code

<select class="visible-phone span3 select-margintop">
    <option>Servicios</option>
    <option><a href="link . com">Test 1</a></option>
    <option><a href="link . com">Test 2</a></option>
    <option><a href="link . com">Test 3</a></option>
</select>

Thanks

like image 215
user2661888 Avatar asked Nov 29 '22 02:11

user2661888


1 Answers

Should work:

<select onchange="location = this.value;">
 <option value="home.html">home</option>
 <option value="team.html">team</option>
 <option value="contact.html">contact</option>
</select>
like image 94
sir_thursday Avatar answered Dec 09 '22 19:12

sir_thursday