Answers for "how to ensure that radio buttons are unselected"

1

how to make radio buttons unselectable

Use disabled attribute with input type=radio
<input type="radio" disabled>
Posted by: Guest on June-05-2021
0

how to uncheck a radio button

//jQuery
$('input[name="radio"]').prop("checked", false);

//Vanilla JS
document.getElementById('radio-button').checked = false;
Posted by: Guest on April-18-2021

Code answers related to "how to ensure that radio buttons are unselected"

Browse Popular Code Answers by Language