Js unchecks the radio button and determines whether the object is empty


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
}
}

<c:if test="${shippingAddressList != null && not empty shippingAddressList}"> //Determines whether the collection shippingAddressList is empty