I\'m trying to replace checkbox/radio inputs with icons. For this, I need to hide the original checkbox/radio. The problem is, I also want the form to properly support keyboard
For input type radio or checkbox:
opacity: 0; height: 0; width: 0; min-height: 0; line-height: 0; margin: 0; padding: 0; border: 0 none;
and the Js above does the trick sweetly.