【判断题】input[type="radio"] :checked + label表示选择label标签,该label标签是type属性为radio的input标签的后代,且该input标签被选中(checked)
举一反三
- 如何实现点击label标签的文字也能选中对应的复选框? A: label标签的name属性值和复选框的input标签的name属性值相同 B: label标签包裹复选框的input标签 C: label标签的id属性值和复选框的input标签的id属性值相同 D: label标签的for属性值与input标签的中的id属性值相同
- 在表单中包含性别单选项,且默认状态为“男”被选中,下列正确的是()。 A: <input type="radio" name="sex" checked="checked"> 男 B: <input type="radio" name="sex" checked="enabled">男 C: <input type="radio" name="sex" enabled="checked">男 D: <input type="radio" name="sex" enabled="enabled">男
- 设置密码框时,可以设置input标签的type属性为radio。( )
- 在网页中有如下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);
- 语句______用于在HTML表单中添加默认选中的复选框。 A: <input type=radio name=s checked> B: <input type=radio name=s enabled> C: <input type=checkbox name=s checked> D: <input type=checkbox name=s enabled>