数组$stu[]存放从学生表中获取的一行记录,学生性别字段为“gender”,下面代码可实现如果当前学生的行为为“男”,则radio button为选中状态,请将下划线部分填充完整。<input name="gender" type="radio" value="男" <?php if(____________=='男') echo "checked" ?>
举一反三
- 数组$stu[]存放从学生表中获取的一行记录,学生性别字段为“gender”,下面代码可实现如果当前学生的行为为“男”,则radio button为选中状态,请将下划线部分填充完整。 <input name="gender" type="radio" value="男" <?php if(____________=='男') echo "checked"
- 在表单中,设置单选按钮 性别选项 "男" 切默认状态为 "男" 被选中,下列代码正确的是( ) A: <input type="radio" name="gender" value="男" checked />男 B: <input type="radio" name="gender" value="男" enabled />男 C: <input type="checkbox" name="gender" value="男" checked />男 D: <input type="checkbox" name="gender" value="男" enabled />男
- input控件是表单中最重要的控件,如果使用input控件表示二选一的性别选项,则下列代码中正确的是 A: <input type="sex">男<input type="sex">女 B: <input type="sex"name="radio">男<input type="sex"name="radio">女 C: <input type="radio"name="nan">男<input type="radio"name="nu">女 D: <input type="radio" name="sex">男<input type="radio" name="sex">女
- 在表单中包含性别单选项,且默认状态为“男”被选中,下列正确的是()。 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">男
- 在网页中有如下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);