Javascript: How to call outer function's return from inner function?
Posted
by serg555
on Stack Overflow
See other posts from Stack Overflow
or by serg555
Published on 2010-03-24T16:49:49Z
Indexed on
2010/03/24
16:53 UTC
Read the original article
Hit count: 142
JavaScript
|jQuery
I have such code:
function allValid() {
$('input').each(function(index) {
if(something) {
return false;
}
});
return true;
}
which always returns true as return false;
affects anonymous inner function. Is there an easy way to call outer function's return?
© Stack Overflow or respective owner