title: Using jQuery Validation plugin for a div instead of form?
body: <p><strong>NOTE</strong>: I referred these questions <a href="https://stackoverflow.com/questions/1046739/jquery-validator-plugin-without-using-form">Qn1</a> , <a href="https://stackoverflow.com/questions/4936221/jquery-validate-plugin-on-div">Qn2</a> before asking this . But honestly the answers are <strong>not working</strong>.  Please suggest a solution..
  I am doing validation to my input fields using jquery validation plugin. My code works fine when all the tags are kept inside a form tag and accessing it in jquery like,  <code>$("#formID").validate()</code> --> this is working fine... But I want to achieve the same for a <code>div</code> instead of a form. </p>
  
  <p>I tried it like this: <code>$("#divID").validate()</code> but it's not working...</p>
  
  <p>Below is my code. please take a look and tell me how to achieve it for a <code>div</code>.</p>
  
  <pre><code> &lt;script type="text/javascript"&gt;
      $(document).ready(function () {
          $("#content").validate({
              onfocusout: true,
              rules: {
                  fullname:
                      {
                      lettersonly: true,
                      required: true
                      },
                  age:
                      {
                          required: true,
                          number: true,
                          min: 20,
                          max:98,
                          nowhitespace:true
                      }
              },
              messages: {
                  fullname: "Please specify your name.",
                  age:"Please enter your correct age."
              }
          });
      });
  &lt;/script&gt;
  &lt;div id="content"&gt;
              &lt;p&gt;
                  &lt;label for="fullname"&gt;Full name:&lt;/label&gt;
                  &lt;input type="text" name="fullname" id="fullname" /&gt;&lt;br /&gt;
                  &lt;label for="age"&gt;Age&lt;/label&gt;
                  &lt;input type="text" name="age" /&gt;
              &lt;/p&gt;
              &lt;p&gt;
                  &lt;button id="submit" value=""&gt;Search User&lt;/button&gt;
              &lt;/p&gt;
   &lt;/div&gt;
  </code></pre>