I have 6 forms and each form has 2 radio buttons.
I want the user experience to be, that they can only select 1 radio button at a time. So when they traverse over into another form and check a radio button. all other radio buttons will deselect.
This is what I have so far in my attemps.
$(document).ready(function () {
$('input[type=radio]').prop('checked', false);
$('input[type=radio]').each(function (i) {
$(this).not($('radio:checked')).prop('checked', false);
});
});
my idea has been to deselect all buttons at the start. but after that i'm confused in my logic.
I want to say
if this radio is check, uncheck all other radios.
while in english it fits in one sentence, how can i get it into jquery?