This is for the JavaScript forum.
You do it this way: Create a string representation for the current filter (like the value of the option from the select tag), then store that to the fragment part of the URL. Then add a JavaScript to the end of the body that will check if a URL fragment is present and apply the appropriate filter.
It could look something like this, if you use jQuery:
Code:
// after a dropdown has been selected:
location.hash = $(selected_option).val();
Code:
$(document).ready(function() {
var fragment = location.hash.replace(/^#/, '');
if (fragment) {
apply_filter(fragment);
}
})
N.B. Another possible place of storing the selection would be a cookie if you don't like to alter the URL fragment.
Bookmarks