<select onchange="location = this.options[this.selectedIndex].value;">
<option>Please select</option> <option value="http://www.apple.com/">Apple</option>
<option value="http://www.bbc.com">BBC</option>
<option value="http://www.facebook.com">Facebook</option>
</select>
Created
March 27, 2018 15:11
-
-
Save eli-oat/0e2fc843f64089ef9a5652790bb20cc2 to your computer and use it in GitHub Desktop.
trigger URL change on select element's change
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment