Reputation: 7435
At the moment I have something like
var inputs = $("form").find("input");
How can I do something like this?
var checkboxes = inputs.find("[type=checkbox]");
Thereby not having to traverse the entire form to find all checkboxes, because we know that all elements with type=checkbox
will also be inputs -- which we've already collected.
Upvotes: 1
Views: 42