The code copy is as follows:
<ul>
<li>
<input type="radio" name="radio" value="reception payment" id="radio" />reception payment-If you need to keep it all night, please pay the room fee in advance.
</li>
<li>
<input type="radio" name="radio" value="guaranteed payment" id="radio" />guaranteed payment--the customer service staff will call you later.
And confirm the information required for the guarantee.
</li>
</ul>
The code copy is as follows:
var chkObjs=null;
var obj=document.getElementsByName("radio")
for (var i=0;i<obj.length;i++){ //Travel over Radio
if(obj[i].checked){
chkObjs=obj[i].value;
}
}
alert(chkObjs);