jQueryUI provides a button () method that converts HTML elements (buttons, inputs, anchors, etc.) into themeable buttons that automatically manage mouse movement. All of these buttons are transparently managed by the jQuery UI.
To combine radio buttons, the button has another widget called Buttonset. ButtonSet is used by selecting container elements (including radio buttons) and calling .buttonset ().
The button() method can be used in two forms:
The button (options) method declares that the HTML element is treated as a button. The options parameter specifies the behavior of the button and the appearance of the object.
|Sr.No.||Option & Description|
The following example shows a simple example of a button widget function that does not pass parameters to the button() method.
This example shows the tags that can be used for buttons. Button element, type input type and anchor type.
The following example shows how to use the two option icons, the text and disabled in JqueryUI button functions.
Here you can see a button with only icon, a button with two icons and a disabled button.
The button ("action", "parameter") method perform on the button, such as disabling the button. The action is specified as the string of the first argument (for example, "disable" invalidate button). Please check the actions shown in the table below.
|Sr.No.||Action & Description|
|4||option( optionName )|
|6||option( optionName, value )|
|7||option( options )|
An example is illustrated using the actions in the table above. The following example shows how to use the destroy() and disable() methods.
In addition to the button (options) methods shown in the previous section, JqueryUI also provides an event method for a specific event trigger.
|Sr.No.||Event Method & Description|
The following example shows how to use the event widget for the button widget function. This example shows how to use event creation.
JqueryUI Related Interview Questions
|HTML 4 Interview Questions||HTML Interview Questions|
|HTML 5 Interview Questions||Zend Interview Questions|
|CodeIgniter Interview Questions||JqueryUI Interview Questions|
|Dynamic HTML Interview Questions||XQuery Interview Questions|
|Advanced jQuery Interview Questions|
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.