Checkbox and Radio Button Methods
Description
The checkboxradio plugin has the following methods:
enable/disable
enable: enable a disabled checkbox or radio button.
$("#element1" ).checkboxradio( "enable" );
disable: disable a checkbox or radio button.
$( "#element1" ).checkboxradio( "disable" );
refresh
refresh: update the custom checkbox or radio button
refresh method updates the checkbox or radio button to reflect the changes we made.
For instance, we can dynamically check a radio button and call "refresh" to rebuild the enhanced control.
// Dynamically set a checkbox or radio element and refresh it.
$( "#elem1" ).attr( "checked", true ).checkboxradio( "refresh" );