Return ID of Fieldset after radio button is selected?

Return ID of Fieldset after radio button is selected?

Hi, I four roles of input buttons that form a grid, i.e when one item is chosen the equivalent buttons in the other rows are switched off.

I have the radio buttons attached to a click handler().

All works fine but is it possible to return the id of the fieldset in this case it would be either fieldset1 or fieldset2. when a radio button is selected?

  1. $(".a, .b,").click(function(){
  2.  // From here return fiedlset ID
  3. };

  1.           <fieldset data-role="controlgroup" data-type="horizontal" id="fieldset1"  class="radioButt">
  2.                     <input type="radio" name="a" id="a" class="r" data-theme="a"/>
  3.                     <label for="a">1st</label>
  4.                     <input type="radio" name="a" id="a" class="r" data-theme="a"/>
  5.                     <label for="a">2nd</label>
  6.                     <input type="radio" name="a" id="a" class="r" data-theme="a"/>
  7.                     <label for="a">3rd</label>
  8.                     <input type="radio" name="a" id="a" class="r" data-theme="a"/>
  9.                     <label for="a">4th</label>
  10.          </fieldset>
  11.          <fieldset data-role="controlgroup" data-type="horizontal" id="fieldset2" class="radioButt">
  12.                     <input type="radio" name="b" id="b" class="r" data-theme="b"/>
  13.                     <label for="b">1st</label>
  14.                     <input type="radio" name="b" id="b" class="r" data-theme="b"/>
  15.                     <label for="b">2nd</label>
  16.                     <input type="radio" name="b" id="b" class="r" data-theme="b"/>
  17.                     <label for="b">3rd</label>
  18.                     <input type="radio" name="b" id="b" class="r" data-theme="b"/>
  19.                     <label for="b">4th</label>
  20.           </fieldset>
  21.               

Thanks in advance,
Lammie.