/ Published in: jQuery
Notice this as the second argument - this refers to the form. Since it's set as the context, jQuery will only return input elements within that form.
You can also pass a regular expression in as the context - if you wanted to use a certain characteristics based selection.
Expand |
Embed | Plain Text
$("form").submit("bind", function() { var allInput = $("input", this); // do something with all inputs inside the form });
You need to login to post a comment.
