Hacker News new | ask | show | jobs
by likortera 1385 days ago
> So, if you're doing all of this effort anyway, why go through the effort of using the HTML input checkbox at all?

Because HTML is the only way to do a checkbox?... Even if you use JavaScript, at the end of the day you'll have to generate HTML for it to render... so then why go through the effort of using JavaScript for a checkbox at all?

1 comments

I meant, why use <input type="checkbox" >, not why use any HTML tag at all. Of course you need some kind of div or span to style.