Im trying to get an option value and add it to the header location.
<select id="time">
<option value="1"> 1 hour</option>
<option value="2"> 2 hours</option>
</select>
When an option is selected from the above list it should then add it as a get variable to the current header url.. such as
header=www.test.com?time=2
<select id="time2">
<option value="1"> 1 min</option>
<option value="2"> 2 min</option>
</select>
While current header being www.test.com?time=2 If a value was chosen from that list then min=2 should be added to the current header. i.e - www.test.com?time=2&min=2
(there are multiple select options, so when each one is selected how can i add the get variable to the current header ?
$('time').on('change', function (e)
{?
});