日期:2014-05-16 浏览次数:20385 次
<input type='radio' id="a" name="radio" /> <input type='radio' id="b" name="radio" /> <input type='radio' id="c" name="radio" /> <input type='radio' id="d" name="radio" /> <p> <input type='button' value="选中" onclick="document.getElementById('b').click();";
------解决方案--------------------
<html> <head> </head> <body onload="document.getElementsByName('group')[0].click()"> <input type="radio" name="group" id="g1" onclick="alert(1)"/> <input type="radio" name="group" id="g2"/> </body> </html>