146
rated 0 times
[
153]
[
7]
/ answers: 1 / hits: 23372
/ 15 Years ago, wed, march 24, 2010, 12:00:00
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?
PS. I am not looking for a workaround, just want to know the answer to original question. If the answer is not possible it is fine.
More From » jquery