How do I stop this loop or jump out of a loop in a loop in jquery? Look up some information and try to find the following method
1. For loop we use continue; terminate this loop to count to the next loop, using break to terminate the entire loop.
2. In jquery, $.each uses return True and return false.
Break can jump out of the Switch...case statement and proceed to the contents after the switch statement. The break statement can also jump out of the loop, that is, to end the execution of the loop statement.
The function of the continue statement is to end the loop, and then the next time the loop is executed.
The difference between continue and break is that break is the complete end of the loop, and continue is the end of the cycle
Originating From: http://www.jb51.net/article/41746.htm
jquery $.each and for how to jump out of the loop to terminate this cycle