Jquery: Widget – Checkboxradio

Options

Basic syntax

$(selector, context).checkboxradio (options);
OptionDescription
disabled Disables the checkboxradio if set to true.
icon Whether to show the checkbox or radio icon, depending on the input’s type.
label HTML to show in the button. When not specified (null), the HTML content of the associated <label> element is used.

Methods

Basic syntax

$(selector, context).checkboxradio ("action", params);
MethodDescription
destroy()Removes the checkboxradio functionality completely. This will return the element back to its pre-init state.
disable()Disables the checkboxradio.
enable()Enables the checkboxradio.
instance()Retrieves the checkboxradio’s instance object. If the element does not have an associated instance, undefined is returned.
option( optionName )Gets the value currently associated with the specified optionName.
option()Gets an object containing key/value pairs representing the current checkboxradio options hash.
option( optionName, value )Sets the value of the checkboxradio option associated with the specified optionName.
option( options )Sets one or more options for the checkboxradio.
refresh()Process any widgets that were added or removed directly in the DOM. Results depend on the items option.
widget()Returns a jQuery object containing the checkboxradio.

Event

Event MethodDescription
create( event, ui )Triggered when the checkboxradio is created.

Leave a Reply

Your email address will not be published. Required fields are marked *