{"name":"input","type":"selector","title":":input Selector","deprecated":null,"removed":null,"desc":"Selects all input, textarea, select and button elements.","categories":["selectors/form-selectors","selectors/jquery-selector-extensions","version/1.0"],"entries":[{"return":"","signatures":{"added":"1.0"},"examples":{"desc":"Finds all input elements.","code":"\nvar allInputs = $( \":input\" );\nvar formChildren = $( \"form > *\" );\n$( \"#messages\" ).text( \"Found \" + allInputs.length + \" inputs and the form has \" +\n formChildren.length + \" children.\" );\n\n$( \"form\" ).submit(function( event ) {\n event.preventDefault();\n});\n","css":"\n textarea {\n height: 25px;\n }\n ","html":"\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n
\n"},"longdesc":"\n

The :input selector basically selects all form controls.

\n "}],"slug":"input-selector"}