0

I want to create select input that will redirect an user on changing the option. I want to do that without any jQuery, is this possible? I remember using aria controls once, but I can't find any code, or any examples in the internet.

<select>
  <option value="1"><a href="all.php">All</a></option>
  <option value="2"><a href="doSomething1.php">Do something</a></option>
  <option value="3"><a href="doSomething2.php">Do something else</a></option>
</select>

How can I do that?

Md. Rakibul Islam
  • 2,140
  • 1
  • 7
  • 14
khernik
  • 2,059
  • 2
  • 26
  • 51
  • 2
    Not possible without `JS`/`jQuery`. – D4V1D Jul 20 '15 at 13:15
  • I'm 100% sure I was using aria inside HTML, might have been with jQuery, but I wasn't writing anything except for html. – khernik Jul 20 '15 at 13:16
  • 3
    Use ` – Roko C. Buljan Jul 20 '15 at 13:16
  • @KarolHernik you probably used Aria for accessibility and forgot that you had some JS involved. – Roko C. Buljan Jul 20 '15 at 13:17
  • Similar Question without answers here: http://stackoverflow.com/questions/23489931/creating-href-link-within-select-option-tag-without-the-help-of-javascript-or-jq – Roko C. Buljan Jul 20 '15 at 13:22

0 Answers0