title: Jquery Empty validation for text box
body: <p>I've a text box in a form,when a user submits the form,it should check whether the user has filled it,other validation would be have some min characters,he has to fill.</p>
  
  <p>here is my code,which is not validating </p>
  
  <pre>
  <code>
  $('.textboxid').bind("submit", function() {
    if($(this).val() == "") {
      jQuery.error('Fill this field');
      return false;
    }
  });
  </code>
  </pre>