JQuery :input selector

linkaiyi
Follow

:input Selector

Description: Selects all input, textarea, select and button elements.

The :input selector basically selects all form controls.
Additional Notes:

Because :input is a jQuery extension and not part of the CSS specification, queries using :input cannot take advantage of the performance boost provided by the native DOM querySelectorAll() method. To achieve the best performance when using :input to select elements, first select the elements using a pure CSS selector, then use .filter(“:input”).

var allInputs = $( ":input" );
Object has 0 attachments

Was this article helpful?

This article is viewed 25 times!

0 Comments

Leave a Comment

Support