Resetting multiple radio buttons

  • 9 March 2022
  • 2 replies
  • 9 views

I was trying to reset about 27radio button options when user's switch options from "No" to "Yes".



I have the following JQuery rule that is working perfectly for up to 10 of my fields, then the code stops working.



Does anyone know why this is happening and if there is a better code to use or other work around?



 



Exp_cid is where I have my "yes" or "no" values.



Level1_cid all the way up to Level27_cid.



 



NWF$(document).ready(function(){var choice = NWF$("#" +Exp_cid);
choice.change(function(){NWF$('#'+ Level1_cid).find('input[type="radio"]').prop('checked', false);
; });} );


2 replies

It is interesting to know whether you managed to solve the problem yourself

Userlevel 4
Badge +16

@Jake could you please see if you can assist here?

Reply