Hi all,
I'm trying to get a page to update the URL based on what gets selected in a drop down menu.
In the head I have the following:
Code:
$(document).ready(function(){
$(".monthselect").change(function(){
var selected;
selected = $(document.getElementById("monthselect").value);
window.location = "?mon=" + selected;
});
});
The select box is called monthselect but when I change the drop down nothing happens.
Thanks in advance