首页 试题广场 > 试题详情
单选题

【C029221】在网页中有如下HTML代码:
<input type="radio" name='sex' value="man"/>男
<input type="radio" name='sex' value="woman"/>女
则设置选择状态为 “女”, 正确jQuery实现代码为( )。

  • A.$("input:radio").get(0).attr("checked",true);
  • B.$("input[type=radio] ")[1].attr("checked",true);
  • C.$("input[type=radio]").eq(1).attr("checked",true);
  • D.$("sex:radio").eq(1).attr("checked",true)
提交并查看答案
下一题 上一题
Ke星伙伴们的回答/ 5个回答
关闭
关闭
QQ
交流群
邀请
好友
App
下载
意见
反馈
返回
顶部