No need to add a class. The state is still saved in the invisible checkbox, it's just we can't use that in CSS.