title: Jquery iterate through class, count sting length, if shorter than X do something
body: <p>I have a site with x instances of a class (they are loaded dynamically through php). In each instance of the class there is a different amount of characters and i want all instances of the class with less than 110 characters to be narrower than the rest. </p>
  
  <p>I have made it this far, which work with one instance of the class , but when two classes are loaded it calculates the total length of all instances of the class. I have looked into .each() for Jquery, but i cant seem to get the syntax right.</p>
  
  <p>JQuery</p>
  
  <pre><code>if ($(".quotecontent").text().length &lt; 110) {
          $(".quote").css("width", 500);
          //alert($(".quotecontent").text().length);
      }
  </code></pre>
  
  <p>HTML</p>
  
  <pre><code>&lt;div class="quote"&gt;
  &lt;div class="quotestart"&gt;&lt;/div&gt;
  &lt;div class="quotecontent"&gt;&lt;p&gt;We have a new toy!&lt;/p&gt;
  &lt;div class="author"&gt;- Fernando Alonso&lt;/div&gt;&lt;/div&gt;
  &lt;div class="quoteend"&gt;&lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="quote"&gt;
  &lt;div class="quotestart"&gt;&lt;/div&gt;
  &lt;div class="quotecontent"&gt;&lt;p&gt;Fight to fly, fly to fight, fight to win.&lt;/p&gt;
  &lt;div class="author"&gt;- Motto of the U.S. Navy Fighter Weapons School, TOPGUN&lt;/div&gt;&lt;/div&gt;
  &lt;div class="quoteend"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>