I'm currently passing a variable to query string with select drop downs and jQuery using this:
$("#filter_1").change(function(e) {
window.location.href = '?filter_1=' + $(this).val()
});
$("#filter_2").change(function(e) {
window.location.href = '?filter_2=' + $(this).val()
});
This is working great. However, if you select filter_2
after having already passed the filter_1
variable, filter_1
gets overwritten in the query string. What I need now is a way to append the filter_1
and filter_2
and vice-a-versa. Any ideas?