Quantcast
Channel: What's the proper value for a checked attribute of an HTML checkbox? - Stack Overflow
Viewing all articles
Browse latest Browse all 11

Answer by Niet the Dark Absol for What's the proper value for a checked attribute of an HTML checkbox?

$
0
0
<input ... checked /><input ... checked="checked" />

Those are equally valid. And in JavaScript:

input.checked = true;input.setAttribute("checked");input.setAttribute("checked","checked");

Viewing all articles
Browse latest Browse all 11

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>