How to find all button inputs and mark them using jQuery ?
Note: In jQuery button is an extension and not part of the CSS specification. You cannot take advantage of the performance boost provided by the native DOM querySelectorAll() method by using the jquery button.
For better performance: First select the elements using a pure CSS selector and then use .filter(“:button”).
:button selector: It is used to select all button elements and elements of the type button.
Output: You can notice that all the button inputs are marked.
Please Login to comment...