jquery validator plugin, how to apply it on on-fly created form?
<p>I am having following js code(similar-sample here) that creates form</p>

<pre><code>function addsection(){
   var newForm = $("&lt;form id='forma1'/&gt;").submit(submit call here).validate();

   --for loop i 1 to 5
   {
       var inpt = $("&lt;input /&gt;").attr('name', 'inpt').addclass('required').appento(newform);
       if(x)
          inpt.att('type', 'checkbox');
       else
          inpt.att('type', 'radio');
   }

   $('#div1').append(newForm);
}
</code></pre>

<p>Problem is it does not do validation.</p>

<p>To perform validation i have done </p>

<p>1> called validation() function (also tried calling at bottom of code once everything is added into form but same result)</p>

<p>2> added required class for input</p>

<p><strong>How can i apply validation using jquery validator plugin in here? is there anything i am doing wrong in here</strong></p>
