Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 4
    The difference between your answer and mine is what exactly? Commented Dec 5, 2012 at 17:50
  • @BlakePettersson yours is correct, ::checked is just wrong (I even tried just in case it's also allowed) ;) Commented Feb 24, 2013 at 0:31
  • 11
    This is a bad answer. (a) ::checked is wrong—it should be :checked. (b) checkbox is wrong—it should be [type=checkbox] Commented Feb 4, 2014 at 5:12
  • You should not hide checkboxe with display: none or visibility: none, as this breaks accessibility Commented Oct 25, 2022 at 10:30