Copy code The code is as follows: js Get an instance of the radio button value Radio selection Radio selection value="Single choice" /> Single choice " value="Single selection" id="RadioGroup1_3" /> Single selection <br>function checksubmit()<br>{<br> if( GetRadioValue('RadioGroup1') )<br> {<br> alert('selected');<br> }<br> else<br> {<br> alert ('No selection');<br> }<br>}<br>function GetRadioValue(RadioName){<br> var obj; <br> obj=document.getElementsByName(RadioName);<br> if(obj!= null){<br> var i;<br> for(i=0;i<obj.length;i ){<br> if(obj[i].checked){<br> return obj[i].value ; 🎜> <br> </div>