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*

9
  • @GandalfStormCrow this will work for any browser that supports the :checked pseudo-class, which IE8 does NOT support. You can check if this works with selectivizr.com - which adds support for :checked and friends. Commented Oct 5, 2012 at 12:08
  • In other words, IE9 and later versions supports :checked. Commented Oct 8, 2012 at 13:13
  • 1
    There is a polyfill for IE8 and below: github.com/rdebeasi/checked-polyfill Commented Jan 2, 2014 at 19:49
  • It's working, but first time it flickers. Why is it happening? Commented Mar 4, 2016 at 2:26
  • I believe hidden inputs never take keyboard focus, so these are unreachable by keyboard. Commented Mar 4, 2016 at 17:27