Js deselect the radio button to select the sample code
- 2020-03-29 23:43:25
- OfStack
The name of a set of radio buttons is country
var country = document.getElementsByName('country');
for(var i=0;i<country.length;i++){
if(country[i].checked)
{
country[i].checked=false; //Not selected
}
}