To break a $. each or $(selector). each loop, you have to return false in the loop callback . Returning true skips to the next iteration, equivalent to a continue in a normal loop.
To break a $. each or $(selector). each loop, you have to return false in the loop callback . Returning true skips to the next iteration, equivalent to a continue in a normal loop.