<td ><input id="rate2" name="n_rate" value="1" align="center" type="radio" onclick="rate_choice()" /><td> $("input[name=n_rate]:eq(1)").attr("checked",'checked'); //表示id为rate2这一项为选择 eq(1) 为对应rate2id的值
转载于:https://www.cnblogs.com/qingjoin/archive/2012/05/05/2484976.html
本文介绍了一种使用JavaScript操作HTML中Radio按钮的方法,通过设置特定ID的Radio按钮为选中状态,实现了对页面元素的动态控制。
146

被折叠的 条评论
为什么被折叠?



