Is there any straightforward mechanism to logically group together radio buttons in different fieldsets (i.e., permit only one selection)?
Is there any straightforward mechanism to logically group together radio buttons in different fieldsets
Share
I had the same problem but I couldn’t move the fieldset as per jQuery Mobile limitations. So, using jQuery, I’ve mimicked radios using checkboxes:
This will work just as fine on radios. The .checkboxradio must be omitted if not using jQuery Mobile. This also still assumes that your checkboxes/radio buttons will be grouped by having the same name.
I had some additional stuff I wanted to do in the each() block. A shorter version is possible if you don’t have that requirement: