Given the following jQuery expression
$("form").each(function () {
var info = validationInfo(this);
if (info) {
info.attachValidation();
}
});
The selector chooses all forms on the page, and then for each 'form' found, it attaches a function.
My question is when does the JS in this function actually run? Does the JS in the function execute when it is attached?