{"name":"checkbox","type":"selector","title":":checkbox Selector","deprecated":null,"removed":null,"desc":"Selects all elements of type checkbox.","categories":["selectors/form-selectors","selectors/jquery-selector-extensions","version/1.0"],"entries":[{"return":"","signatures":{"added":"1.0"},"examples":{"desc":"Finds all checkbox inputs.","code":"\nvar input = $( \"form input:checkbox\" )\n .wrap( \"\" )\n .parent()\n .css({\n background: \"yellow\",\n border: \"3px red solid\"\n });\n\n$( \"div\" )\n .text( \"For this type jQuery found \" + input.length + \".\" )\n .css( \"color\", \"red\" );\n\n// Prevent the form from submitting\n$( \"form\" ).submit(function( event ) {\n event.preventDefault();\n});\n","css":"\n textarea {\n height: 25px;\n }\n","html":"\n
\n\n\n"},"longdesc":"\n$( \":checkbox\" ) is equivalent to $( \"[type=checkbox]\" ). As with other pseudo-class selectors (those that begin with a \":\") it is recommended to precede it with a tag name or some other selector; otherwise, the universal selector (\"*\") is implied. In other words, the bare $(':checkbox') is equivalent to $( \"*:checkbox\" ), so $( \"input:checkbox\" ) should be used instead.