Saturday, May 25, 2024
 Popular · Latest · Hot · Upcoming
113
rated 0 times [  118] [ 5]  / answers: 1 / hits: 71062  / 16 Years ago, tue, february 24, 2009, 12:00:00

This page does it the way I want it to: http://www.web-source.net/javascript_redirect_box.htm



But I want to find a better way using jQuery, can anyone point me to a good script that uses jQuery to accomplish this?


More From » jquery

 Answers
24

You don't need a pre-packaged script for this, just a couple lines of code.



// get your select element and listen for a change event on it
$('#selectEl').change(function() {
// set the window's location property to the value of the option the user has selected
window.location = $(this).val();
});

[#99937] Tuesday, February 17, 2009, 16 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
yosefleod

Total Points: 113
Total Questions: 100
Total Answers: 115

Location: Egypt
Member since Tue, May 3, 2022
2 Years ago
;