I have multiple radiobutton lists within a fieldset tag.
I only ever want one item to be selectable from the whole list…
currently i can select one item from each radio button list – which is normal
I know the proper way would to do this would be to have one long radio button list, but that is not an option.
Is there a way in javascript/jquery that given the fieldset class name – say
<fieldset class="mylistofradiolists"> that when a radio button within it is selected all other items are deselected and only that single one remains selected
Thanks
You can do that with the following code
When an radio is selected all other radio’s except that are deselected within that container.
It’s better to use
Instead of
As the doc for
:radioselector says