I have set the html checkbox the checked property to false,but it still checked

前端 未结 1 1776
独厮守ぢ
独厮守ぢ 2021-01-11 10:02

here is my html markup:


I have set the checked to false, but the result is s

相关标签:
1条回答
  • 2021-01-11 10:33

    If you specify checked, then it is checked; it doesn't matter if you say checked="false", checked="true", checked="checked" or just plain checked.

    If you don't want it checked, then do not include the checked attribute.

    <input type="checkbox" />
    

    See: http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_input_checked

    0 讨论(0)
提交回复
热议问题