なしでjqueryから抜け出すにはどうすればよいですかreturn FALSE
。
次のことを考慮してください
function check_quantity(){
var _q = $(".quantity");
_q.each( function(){
if( some_condition ){
break; // I WANT TO BREAK HERE AND NEED TO RETURN A TRUE INSTEAD OF FALSE
// for some reasons there is no way to continue
}
} );
return FALSE; // if condition failed
}
回避策はありますか?