OK - I have the solution so I figured I'd post it to help anyone else looking for the same solution. If you can make it cleaner/better, please post!
<script> $(document).ready(function(){ $("#button1").click(function(){ $("input:radio[name='RadioGroup1']:nth(0)").attr("checked","checked"); $("input:radio[name='RadioGroup2']:nth(1)").attr("checked","checked"); }); $("#button2").click(function(){ $("input:radio[name='RadioGroup1']:nth(1)").attr("checked","checked"); $("input:radio[name='RadioGroup2']:nth(2)").attr("checked","checked"); }); }); </script> On Apr 15, 7:31 pm, "madrid440-goo...@yahoo.co.uk" <madrid440- goo...@yahoo.co.uk> wrote: > I should have added some clearer HTML. I've added tables to break it > up a bit: > > <input type="submit" name="button1" id="button1" value="Selection1" /> > <input type="submit" name="button2" id="button2" value="Selection2" /> > > <table> > <tr> > <td> > <label><input type="radio" name="RadioGroup1" value="0" > id="RadioGroup1_0" />0</label> > <label><input type="radio" name="RadioGroup1" value="1" > id="RadioGroup1_1" />1</label> > <label><input type="radio" name="RadioGroup1" value="2" > id="RadioGroup1_2" />2</label></td> > </tr> > </table> > > <table> > <tr> > <td> > <label><input type="radio" name="RadioGroup2" value="0" > id="RadioGroup2_0" />0</label> > <label><input type="radio" name="RadioGroup2" value="1" > id="RadioGroup2_1" />1</label> > <label><input type="radio" name="RadioGroup2" value="2" > id="RadioGroup2_2" />2</label> > </td> > </tr> > </table> > > On Apr 15, 2:08 am, "madrid440-goo...@yahoo.co.uk" <madrid440- > > goo...@yahoo.co.uk> wrote: > > I'm getting lost in selectors... > > > I am trying to achieve the following: > > A button click needs to select certainradiobuttons within different > >radiogroups. e.g RadioGroup1_0 and RadioGroup2_1 > > > A click on another button resets theradiobuttons to blank, and then > > selects differentradiobuttons within thoseradiogroups. e.g. > > RadioGroup1_1 and RadioGroup2_2 > > > <input type="submit" name="button1" id="button1" value="Selection1" /> > > <input type="submit" name="button2" id="button2" value="Selection2" /> > > > <label><input type="radio" name="RadioGroup1" value="0" > > id="RadioGroup1_0" />0</label> > > <label><input type="radio" name="RadioGroup1" value="1" > > id="RadioGroup1_1" />1</label> > > <label><input type="radio" name="RadioGroup1" value="2" > > id="RadioGroup1_2" />2</label> > > > <label><input type="radio" name="RadioGroup2" value="0" > > id="RadioGroup2_0" />0</label> > > <label><input type="radio" name="RadioGroup2" value="1" > > id="RadioGroup2_1" />1</label> > > <label><input type="radio" name="RadioGroup2" value="2" > > id="RadioGroup2_2" />2</label>