I have some divs, each with a radio button and a drop-down box. What is some simple jQuery to, on selection of the drop-down box, check the radio button within the same div?
<div id="x">
<%= radio_button_tag "opt", "gene", false %>
<%= select_tag "opt", options_for_select(@genes), { :multiple => false, :class => 'selectors'} %>
</div><br/>
If your HTML looks something like this:
then your JavaScript could look something like this:
http://jsfiddle.net/mattball/CBGMD/