I have a model of objects in a dropdown menu:
<select id="group_select" name="group_select">
<option value="1">Group One</option>
<option value="2">Group Two</option>
</select>
Each corresponding object has a detail page in which I want to have a link that sends the user to the page with the dropdown menu with the object they were referred from already selected in the menu. I was thinking that this could be done with a query string, but I seem to be mistaken. (e.g. /rank/objects/?group_select=1
.
What would be the proper way to do this? Answers with jQuery are welcome as well, since I'm already using that on this page.
Thanks!