button selector
Description: Selects all button elements and elements of type button.
version added: 1.0jQuery( ":button" )
An equivalent selector to $( ":button" ) using valid CSS is $( "button, input[type='button']" ).
Additional Notes:
-
Because
:buttonis a jQuery extension and not part of the CSS specification, queries using:buttoncannot take advantage of the performance boost provided by the native DOMquerySelectorAll()method. To achieve the best performance when using:buttonto select elements, first select the elements using a pure CSS selector, then use.filter(":button").
Example:
Find all button inputs and mark them.
