jQuery Tip: How to Break Out of an .each() Loop
Here’s a nice little jQuery tip I found today. If you want to break out of an each loop in jQuery, you can do it by returning false. Here’s the real example from $().SPServices.SPArrangeChoices: Tip ‘o the tam ‘o shanter to crad on tumblr for this one.