why i can uncheck a radio button code example
Example: how to uncheck a radio button
//jQuery
$('input[name="radio"]').prop("checked", false);
//Vanilla JS
document.getElementById('radio-button').checked = false;
//jQuery
$('input[name="radio"]').prop("checked", false);
//Vanilla JS
document.getElementById('radio-button').checked = false;