I have a radio button named \"Choose\" with the options yes and no. If I select any one of the options and click the button labeled \"clear\", I need to clear the selected o
In my case this got the job done:
const chbx = document.getElementsByName("input_name"); for(let i=0; i < chbx.length; i++) { chbx[i].checked = false; }