I’ve got a dropdown that’s code is as follows:
<select name="month" onchange="updateURL()">
<option value="1">January</option>
<option value="2">February</option>
<option value="3">March</option>
...
<option value="12">December</option>
</select>
As you can see, when it changes, it calls the javascript function: updateURL().
What code should I put in the updateURL function that would change the document’s location to:
/calendar/(insert value of the selected option here)
1 Answer