#jQuery #each() .each() .each() will repeat the function for each of the selected elements if there are multiple. grammar .each( function ) To break out of a repeat operation when certain conditions are met return false Use the. example 1 Add a different class to each p element. Lorem Ipsum Dolor Amet example 2 Repeat the work only twice to exit. Lorem Ipsum Dolor Amet