I have a select dropdown with id\'s mapped to values. On the onChange event I want to redirect to the same url but with \'id=value\' appended to the querystring.
How do
Try using the split function:
var url = location.href.split('?')[0] + '?;id=' + $(this).val();
split returns a list made up of the string split up by the string (like '?'), with that string removed.
split