题目内容

页面中有一个性别单选按钮,请设置“男”为选中状态。代码如下:

A. $("sex[0]").attr("checked",true);
B. $("
C. sex[0]").attr("checked",true);
D. $("[name=sex]:radio").attr("checked",true);
E. $(":radio[name=sex]:eq(0)").attr("checked",true);

查看答案
更多问题

元素最初代码如下:

A. $("p").attr("class").val("high");
B. $("p").attr("class","high");
C. $("p").addClass("high");
D. $("p").removeClass("high");

animate方法中必选参数为( )

A. styles
B. speed
C. easing
D. callback

animate方法中规定动画速度的值可能为()

A. slow
B. normal
C. fast
D. default

为一个指定元素的指定事件(如click)绑定一个事件处理函数,下面哪个用来实现该功能( )?

A. trigger(type)
B. bind(type)
C. one(type)
D. bind

答案查题题库