here is my html markup:
<input type="checkbox" checked="false">
I have set the checked
to false, but the result is still checked
Why this happened? If I remove the checked property, it would turn unchecked.
Actually I want insert a input[type=checkbox]
into html markup in dynamic, with parameter to determine checked or not
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With