wrkbrs
[HTML] checked 속성에 들어갈 수 있는 값들 본문
There are no values that will cause the checkbox to be unchecked. If the checked
attribute exists, the checkbox will be checked regardless of what value you set it to.
<input type="checkbox" checked />
<input type="checkbox" checked="" />
<input type="checkbox" checked="checked" />
<input type="checkbox" checked="unchecked" />
<input type="checkbox" checked="true" />
<input type="checkbox" checked="false" />
<input type="checkbox" checked="on" />
<input type="checkbox" checked="off" />
<input type="checkbox" checked="1" />
<input type="checkbox" checked="0" />
<input type="checkbox" checked="yes" />
<input type="checkbox" checked="no" />
<input type="checkbox" checked="y" />
<input type="checkbox" checked="n" />
Renders everything checked in all modern browsers (FF3.6, Chrome 10, IE8).
https://stackoverflow.com/questions/4228658/what-values-for-checked-and-selected-are-false
'HTML' 카테고리의 다른 글
[HTML] 더미 이미지 생성 사이트 (0) | 2019.01.15 |
---|---|
[HTML] HTML5의 새로운 폼 속성 (autofocus,autocomplete,placeholder,required) (0) | 2019.01.12 |
[HTML] input 속성 readonly / disabled / 차이 (0) | 2018.12.31 |
[HTML] HTML 색상 선택 (HTML Color Picker) (0) | 2018.12.20 |
[HTML5] <form> 태그_GET과 POST (0) | 2018.10.31 |