Selecting previous label element JQUERY
<p>So I have a form;</p>

<pre><code>&lt;label for="name"&gt;Job Date&lt;/label&gt;&lt;br /&gt;&lt;input id="name" class="required" title="Enter a name!" name="name" type="text" /&gt;
</code></pre>

<p>and some Jquery to cycle through each input with class "required" and see if it is empty/blank and if so give this input a red border color, and also the label assosciated with it a red color;</p>

<pre><code>function checkreview()
    { 
     var errors = "";
     $(".required").each(function (i) 
     {
      if($(this).val() == "")
      {
       errors += $(this).attr('title')+'&lt;br /&gt;';
       $(this).css('border-color','#FF0000');
       //need to select previous label and set color to red    
      }

     });


}
</code></pre>

<p>So I need a selector that will select the previous label and allow me to give it .css('color','FF0000').</p>

<p>Any ideas how to select the previous label in JQUERY?</p>
