• 2022-06-16
    在网页中有如下HTML代码:[br][/br] [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);
  • 举一反三