Tip: You can modify some of the code before running
<textarea name="runcool" rows="28" cols="75"><div class= "Demo-container" > <script type= "text/javascript" >function getradiovalue (radio) {if (! Radio.length&&radio.type.tolowercase () = = ' Radio ') {return (radio.checked)? Radio.value: ';} if (radio[0). Tagname.tolowercase ()!= ' Input ' | | Radio[0].type.tolowercase ()!= ' radio ') {return ';} var len=radio.length;for (i=0;i<len;i++) {if (radio[i].checked) {return radio[i].value;}} Return ';} </script> <br/><br/><form name= "Testform" > <input type= "Radio" name= "lang" value= "PHP"/ > PHP <input type= "Radio" name= "Lang" value= "java"/> java <input type= "Radio" name= "Lang" value= ". Net"/> . NET <input type= "button" value= "point this gets the value" onclick= "Alert (getradiovalue (this.form.elements[' lang '))"/></ form> <br/><br/></div></td> </tr> </table></textarea>