title: check if text box is empty then run code
body: <p>I have the following jquery and want to check if the text box is empty before the code is run:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function () {
          if ($("#FNameTB").val().length &lt; 0) {
              $("input#FNameTB").labelify({ labelledClass: "greylabel" });
          }       
  &lt;/script&gt;
  </code></pre>
  
  <p>but its not working.</p>