title: jQuery ,each() - return value
body: <p>I have this code:</p>
  
  <pre><code>i = 60;
                  i = $(this).find('li a').each(function(i) {
                      w = $(this).text();
                      $('#js').text(w);
                      w = $('#js').width();
                      if(w &gt; i) {
                          i = w;
                      }
                      return i;
                  });
  </code></pre>
  
  <p>It's wrong :-).
  I have X strings ($(this).find('li a')). And i want to get the length (px) of the longest one and save its length to variable i. That i will use later in my code.</p>
  
  <p>Thank you and i'm sorry for my English :-)</p>