Checkboxes

Home

Checkboxes

Since the native checkbox is used as a proxy for the custom checkbox, you can watch for events on the original, native checkbox instead of needing to go through the checkbox plugin. Bind to the change event by type: change, blur, focus, keypress, click, etc.


$("input[type='checkbox']").bind( "change", function(event, ui) {
  ...
});

The checkbox plugin has the following custom events:

create triggered when a checkbox is created

This event is used to find out when a custom checkbox was created. It is not used to create a custom checkbox. The checkbox create event can be used like this:


$("input[type='checkbox']").checkboxradio({
   create: function(event, ui) { ... }
});