Example 1 — Official Demo: input:reset
Style reset inputs and print the match count (jQuery API example).
var input = $("input:reset");
$("#count").text("For this type jQuery found " + input.length + "."); How It Works
- Query.
$("input:reset")finds reset-type inputs only. - Filter. Text, submit, and checkbox controls are ignored.
- Count.
.lengthis how many reset inputs matched.

