Home >Web Front-end >JS Tutorial >How to write jquery to exit each loop_jquery
Just return false in the callback function, most jq methods are like this
============================== ======
Returning 'false' will stop the loop (just like using 'break' in a normal loop).
Return 'true' to jump to the next loop (just like using 'continue' in a normal loop).