Adds a .checked class that behaves like the :checked pseudo-class.