Leonardo,
Put one of these options into the onClick of your radioButton:
this.checked = false;
$(this).prop('checked', false);
$(this).attr('checked', false);
$(this).removeAttr('checked');
If put into a separate javascript you can replace this
with '#idRadioBtn'
You can also search for all elements of the radio type:
$("input:radio").attr("checked", false);
$("input:radio").removeAttr("checked");
The above operations are to uncheck the selected element, to do otherwise simply change the parameters false
to true
.
You may need a control logic. To check what element status it uses:
document.querySelector('input[name="nomeSeuRadio"]:checked').value;