相关考题
-
单项选择题
在网页中有如下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); -
单项选择题
在jquery中,下列()可以用来判断id为txt_hide的元素不存在。
A.$("#txt_hide").length==0
B.$("#txt_hide").get(0)==0
C.$("#txt_hide").eq(0)==null
D.$("#txt_hide")==null -
单项选择题
能够动态改变div元素中的内容是()
A.利用html()方法
B.利用div元素的id属性
C.使用onblur事件
D.使用display属性
