I have the following js function and I\’m pulling my hair out trying to determine why it won\’t return \’true\’. I\’ve verified the logic block is being hit by adding an alert into the block but it seems to skip the line containing the return statement.
function requiresMatchLevel(fields) {
$.each(fields, function (i, field) {
if (field.OperationParamName() == \"MatchLevel\" && field.Include()) {
return true;
}
});
return false;
};





Rating:
The post JavaScript function not returning true appeared first on Javascript ASK.
via Javascript ASK http://javascriptask.phpfogapp.com/javascript-function-not-returning-true.html
No comments:
Post a Comment