欢迎来到在线考试题库网 在线考试题库官网
logo
全部科目 > 大学试题 > 计算机科学 > jQuery考试

单项选择题

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

    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);

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题