输入类型=复选框问题 [英] input type = checkbox problem

查看:42
本文介绍了输入类型=复选框问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么这条线不起作用?

Why is this line not working?

<input type="checkbox" checked="no"/>
                    <input type="checkbox" checked="false"/>

即使我在复选框值中指定no和false都默认选中.

Even though i have specified no and false in checkbox value both are checked by default.

先谢谢您了:)

推荐答案

将其更改为此将使第一个处于未选中状态,而第二个处于选中状态:

changing it to this will make the first unchecked, and the second checked :

 <input type="checkbox" />
 <input type="checkbox" checked />

要取消选中该复选框,您需要删除选中"一词.

To make the checkbox unchecked you need to remove the word "checked".

这篇关于输入类型=复选框问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆