How can I link the actions of a click function to a select form with jquery.
For exmaple if an image 1 is clicked. How can I let the form know that image 1 is clicked by changing the ‘selected’ option in a form.
<a href="#" rel="green">Green</a>
<select>
<option value="green">Green</option>
</select>
When “green” is clicked the “selected” option is added to the selection
I know i’ve seen it done before. I just cannot find it anywhere.
Thanks,
Robert
Demo: http://jsfiddle.net/MZ7nS/