continue
statement in a for loop, it will skip "$("#element-name").each(function(i){
if(this.val() == ''){
alert("null");
return false;
}
});
if jQuery is surrounded by another function, how can you do it?
i.e
function test() {
$("#element-name").each(function(i){
if(this.val() == ''){
alert("null");
return false;
}
});
// do something more
}
probably you can't avoid below logic.
Any idea to exit at once from whole function?
댓글 없음:
댓글 쓰기