title: Loop through captions and do something to all captions over certain character length jquery
body: <p>I know how to count characters: <code>$('.caption-text p').text().length</code> ,   I know to add a class to an element : <code>$('.caption-text p').css('color', "yellow");</code>, I'm pretty sure I know how to write an if, or at least I hope so.  But i'm failing at connecting all of those inside a loop.</p>
  
  <p>I need to loop through all the .caption-text paragraph tags, and add a color to those less than 5 characters.</p>
  
  <p>I think I'm close, but any help is very appreciated!!! </p>
  
  <pre><code>captions = $('.caption-text p');
  captions.each(function(){
    if (captions.text().length &lt; 5){
      $(this).css('color', "yellow");
    }
  </code></pre>