title: jQuery validation is not working : Need to know the error
body: <p>I have implemented some validations to a simple login page and applied some jQuery validations on button click but the code isn't working. I tried checking console but it was not giving me any errors. Please see the code for your reference:<br>
   Could you guys tell me the error?</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;Login Page&lt;/title&gt;
          &lt;script type="text/javascript" src="js/jquery-1.11.1.min.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="js/jquery.validate"&gt;&lt;/script&gt;
  
          &lt;script&gt;
              $(document).ready(function(){       
                  $("#form").validate({
                      alert("hi");
                      rules: {
                          name: {
                              required: true,
                              midlength: 5,
  
                          },
                          email: {
                              required: true,
                              email: true,
                          },
                          password: {
                              required: true,
                              midlength: 5,
                              equalTo: "#verify",
  
                          },
                      }
                  });
              });
          &lt;/script&gt;
  
          &lt;style&gt;
              label{
                  width: 150px;
                  display: inline-block;
              }
  
              label.error{
                  color: red,
              }
          &lt;/style&gt;
  
      &lt;/head&gt;
  
      &lt;body&gt;
  
          &lt;form id="form"&gt;
  
          &lt;label&gt;Name : &lt;/label&gt;
          &lt;input type="text" name="name" /&gt;&lt;br/&gt;
  
          &lt;label&gt;Email : &lt;/label&gt;
          &lt;input type="text" name="email"/ &gt;&lt;br/&gt;
  
          &lt;label&gt;Password : &lt;/label&gt;
          &lt;input type="text" name="pass" /&gt;&lt;br/&gt;
  
          &lt;label&gt;Verify Password : &lt;/label&gt;
          &lt;input type="text" name="verify" id="verify" /&gt;&lt;br/&gt;
  
          &lt;input type="submit" /&gt;
  
          &lt;/form&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>