can i have the implmentation for jQuery.each wherein if i find any match within the array which is been processed in jQuery.each, then i can break / return without further process the remaining elements.
<ul>
<li>foo</li>
<li>bar</li>
You can select the list items and iterate across them:
$( "li" ).each(function( index ) {
//if($(this).text() == 'foo') , i.e if foo is found ,
//then return instead of processing bar.
});