<div class="htmlarea"> <textarea id="runcode13080"> <script language="javascript" type="text/javascript"> function get_radio_value(field){ if (field && field.length){ for (var i = 0; i < field.length; i++){ if (field[i].checked){ alert(field[i].value); } } }else{ return; } } </script> <form name="myForm"> <div> <input name="point" type="radio" value="是" checked>是</div> <div> <input name="point" type="radio" value="否">否</div> <input type="button" value="确定" onclick="get_radio_value(myForm.point);"> </form> </textarea><br><input onclick="runEx('runcode13080')" type="button" value="运行代码"> <input onclick="doCopy('runcode13080')" type="button" value="复制代码"> <input onclick="doSave(runcode13080)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]</div>