title: jquery validate for my login page is not working
body: <p>I am very new to jquery &amp; javascript working on login page where Iam using simple jquery validation code. To check whether my username as <strong>john</strong> and the password <strong>pass</strong> if it was correct it has to redirect to other page. Else I need to show an error message.</p>
  
  <pre><code> &lt;script type="text/javascript"&gt;
         $(document).ready(function () {
             $("#form1").validate({
                 debug: false,
                 rules: {
                     name: "required",
                     password: {
                         required: true,
                         minlength: 8
                     }
                 },
                 messages: {
                     name: "Please enter your name.",
                     password: "Please enter 8 letters minimum.",
                 }
             });
  
         });
     &lt;/script&gt;
  </code></pre>
  
  <p>The above code was checking the first rule where if it is empty or not but this itself not working. I am not getting any error label message.</p>
  
  <p>Here is the fiddle <a href="http://jsfiddle.net/karthic2914/2257chwq/4/" rel="nofollow">Link</a></p>
  
  <p>Thanks in advance</p>
  
  <p>Regards
  M</p>