Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Found here:
- https://forums.digitalpoint.com/threads/loading-page-based-on-option-selected-when-option-changes-from-drop-down.285425/
- <script type="text/javascript">
- function redirectMe (sel) {
- var url = sel[sel.selectedIndex].value;
- window.location = url;
- }
- </script>
- <select name="myselect" onchange="redirectMe(this);">
- <option value=" " selected>-=choose=-</option>
- <option value="file.php?var=ALL">ALL</option>
- </select>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement