Jquery ui browser matching icon3/6/2023 ![]() ![]() The button() method is a built in method in UI of jQuery, which can be used to transform the standard form elements such as buttons, anchors, input. Where the button() method use the some action. Where the button() method uses options like icons, disabled and text. The example of input element (type=checkbox) as button : The example of input element (type=submit) as button : The example of link element as anchor button : The example of button element as button : Where the button() method is used to treat an html elements as button without passing any parameters to the button() method. Given below are the examples mentioned: Example #1 widget: It is used to get an object which contain the button element.option( options ): It is used to set one or multiple button options in the form of option-value pairs map.option( optName, value ): It is used to set button option of the passing optName.option: It is used to get an current object containing key-value pairs.option( optName ): It is used to get the value of the specified option as optName which is a string.enable: It is used to enable the functionality of the button element.disable: It is used to disable the functionality of the button element.refresh: It is used to refresh the button state.destroy: It is used to destroy or remove the functionality of the button element and return to original state.The action parameter specifics the action to be performed on that button. In the second method $(selector, context).button ( “action”, params ), it accepts the two parameters, the action and params. The default value of this option is NULL. For example the is the natural label of the radio buttons and check boxes. label: It represents the label to display on the button instead of natural label.The default value of this option is true. text: It represents the text to be displayed on the button.The default value of both icons are NULL. The Primary icon is specified by an object of the primary property and same way the secondary icon is specified by an object of secondary property. There can be one or two icon as Primary icons (left) and secondary icons(right). icons: This option set an icons to be displayed in the button.disabled: This option disable or deactivate the button by set it to true.There are list of possible values which we can use for the option: In the first method $(selector, context).button (options), it accept only one parameter that is option. The action to be performed is passing as a string disable, enable, destroy the button. ![]() $(selector, context).button (“action”, params): This is second method which declares an html element as a button and performs an action on that button. If the options are more than one, then this method can be used and each option should be separated by using the comma as below: object. $(selector, context).button( ) Ģ. The options parameter specifies an appearance and the behavior of the button. $(selector, context).button (options): This is first method which declares the specific HTML element as a button.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |