Better radio and checkbox replacement with jQuery

I made an update to this checkbox replacement script. Now with inputs nested inside label elements the script listens for change events on the inputs and updates the replaced checkbox accordingly. This script is designed to easily replace all checkboxes and radio inputs across a whole site with just 12 lines of coffeescript. It’s a much better way of doing it as you can toggle your checkboxes with javascript and not have to worry about whether your input replacement is in sync.

Leave a Reply