What's the proper value for a checked attribute of an HTML checkbox?

后端 未结 8 2161
栀梦
栀梦 2020-11-22 13:02

We all know how to form a checkbox input in HTML:


What I don\'t k

8条回答
  •  北恋
    北恋 (楼主)
    2020-11-22 13:32

    Well, to use it i dont think matters (similar to disabled and readonly), personally i use checked="checked" but if you are trying to manipulate them with JavaScript, you use true/false

提交回复
热议问题