return in jQuery.each
<p>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.</p>

<pre><code>&lt;ul&gt;
&lt;li&gt;foo&lt;/li&gt;
&lt;li&gt;bar&lt;/li&gt;
</code></pre>

<p>
You can select the list items and iterate across them:</p>

<pre><code>$( "li" ).each(function( index ) {
  //if($(this).text() == 'foo') , i.e if foo is found , 
//then return instead of processing bar.
});
</code></pre>
