title: validate a form which is loaded via AJAX on page
body: <p>how to validate a form which is loaded via <code>AJAX</code> on page. i'm using jquery <code>validate.js</code>. plugin. i call the validate function after the form is loaded via ajax, but it doesn't work.</p>
  
  <p>jquery code :</p>
  
  <pre><code>  $(document.body).on('click', '.submitBtn', function(){
      var id=$(this).attr('id');
     $("#form"+id).validate({
       submitHandler: function() {
  
          // do anything
  
       }
     });
  });
  </code></pre>
  
  <p>Any help will be highly appreciated.</p>