Jquery exits each loop

  • 2020-03-30 02:09:01
  • OfStack

Return false in the callback function, as most jq methods do
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Returning 'false' will stop the loop (just like using 'break' in a normal loop).
Returning 'true' skips to the next loop (just like using 'continue' in a normal loop).

Related articles: