Radio buttons

Home

Radio buttons

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


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

The radio button plugin has the following custom events:

create triggered when a radio button is created

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


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