I have a function that executes a number of times. I want to find using jQuery how many times the function is called. How do I do that?
Whenever a text field is changed, function showErrors is called. So depending on the number of text fields on a page, I should be able to find the number of times showErrors is called. how will I detect that within the showErrors function.
showErrors: function(errorMap, errorList) {
if ($formEl.find(".aimInput input").length == 2) {
// $('.validate').html(errorList[0]['message']);
$(".aimLocal .submit").removeClass("disabled");
$(C.options.currentPage).find('input[type="submit"]').removeAttr("disabled");
}
}