Hi all - I'm new to jquery and trying to accomplish something. My HTML looks like:
<li>
<div class="yes"><input type="radio" name="Group 1"></div>
<div class="no"><input type="radio" name="Group 1"></div>
Group 1
<ul>
<li style="padding-left:25px">
<div class="yes"><input type="radio" name="Item 1"></div>
<div class="no"><input type="radio" name="Item 1"></div>
Item 1
</li>
<li style="padding-left:25px">
<div class="yes"><input type="radio" name="Item 2"></div>
<div class="no"><input type="radio" name="Item 2"></div>
Item 2
</li>
</ul>
</li>
<li>
<div class="yes"><input type="radio" name="Group 2"></div>
<div class="no"><input type="radio" name="Group 2"></div>
Group 2
<ul>
<li style="padding-left:25px">
<div class="yes"><input type="radio" name="Item 3"></div>
<div class="no"><input type="radio" name="Item 3"></div>
Item 3
</li>
<li style="padding-left:25px">
<div class="yes"><input type="radio" name="Item 4"></div>
<div class="no"><input type="radio" name="Item 4"></div>
Item 4
</li>
</ul>
</li>
It took a while to get the html right (I need the divs around the radio buttons for appearances), and now I'm moving on to the JQuery processing. Primarily, I need to propagate changes to Group 1 to all of its "child" items. I'm not really sure how to accomplish that using jquery (we use 1.1.3.1).
Any tips?
UPDATE: I edited the HTML as suggested, cordoning off the groups.