题目内容

在jQuery中,不能实现表单选中状态的是

A. $("input").attr("checked",true)
B. $("input").attr("checked","checked")
C. $("input").attr(checked)
D.

查看答案
更多问题

在jQuery中,用()来获取当前窗口的宽度值。

A. width()
B. width(val)
C. width
D. innerWidth

下面代码能够实现,给按钮添加点击事件并获取到文本框的值的是

A. $("button").click(function(){$("
B. text").val())}
C. $("button").onclick(function(){$("
D. text").val())}
E. $("button").click(function(){$("
F. text").html())}
G. $("button").click(function(){$("
H. text").val(value))}

在jQuery中,用()语法实现添加多个类。

A. $(selector).addClass("c1,c2,c3")
B. $(selector).addClass([c1,c2,c3])
C. $(selector).addClass({c1,c2,c3})
D. $(selector).addClass("c1 c2 c3")

下面代码中,能够获取表单元素的选中的状态正确的是

A. $("input").attr("checked")
B. $("input").attr(checked)
C. $("input").attr({"checked":checked})
D. $("input").attr()

答案查题题库