title: changing placeholder text font and color with jquery
body: <p>I have an input tag of the following form</p>
  
  <pre><code>&lt;input type="text" name="firstname" id="firstname" placeholder="First name"&gt;
  </code></pre>
  
  <p>First I check that the field is not empty using jquery</p>
  
  <pre><code> $("#submitreg").click(function(e){
       if ($.trim($("#firstname").val())=='')
           {
               $("#firstname").attr('placeholder',"first name can't be empty");
               e.preventDefault();
           }
   });
  </code></pre>
  
  <p>Now if the input field is empty, I change the placeholder to "first name can't be empty". Is it also possible to change the placeholder color to red and make the font 85% using jquery.</p>
  
  <p>Thanks</p>