title: JQuery validate div contents
body: <p>I am trying to click a save button and then call the validate function on my div section where all the fields that need validation have the required tag.</p>
  
  <pre><code>    &lt;script type="text/javascript"&gt;
          $(document).ready(function () {
              $("#button").click(function() {
                  $('#MyDIv').valid();
              });
          });
  
      &lt;/script&gt;
  
  &lt;div id="MyDIv"&gt;
    &lt;input type="text" class="required" id="id1" /&gt;
    &lt;input type="text" id="id2" /&gt;
    &lt;input type="button" id="button" /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>With this code I am getting a validator is undefined error. I cannot use a form.</p>