<div class="selCont"> <h2>pick an option</h2> <select id="my-dropdown" name="my-dropdown"> <option value="0">Please Select</option> <option value="1">West</option> <option value="2">Land</option> <option value="3">Easter</option> <option value="4">Springtime</option> <option value="5">Celtic</option> <option value="6">Spectacular/</option> <option value="7">Weekend</option> <option value="8">Dark</option> <option value="9">Treasures</option> </select> <button class="go-btn" type="submit"> Go </button> </div>
Thus, basically, I want the user to be able to select an option, and by clicking the "Progress" button, to run the script and see the value of the drop-down list and use the value to send them to the corresponding page.
I tried a few things, but so far it is not hanging too well. Any help was appreciated as always.
EDIT
http://jsfiddle.net/TmfyC/ - this is what has been done recently with the help of one of the comments.
* WHAT I USED FOR PEOPLE WHO MAY BE ADVANTAGES *
$('.go-btn').click(function() { window.location = $('#my-dropdown').val(); });
This is what I ended up doing, then assigned a value as the URL of my pages. It seems to work as a pleasure. Thanks for helping the guys.
source share