$('form')validate() doesn't validate a dynamic form
Hi,
I have a dynamic form that i built all controls dynamically using javascript when i click on Submit() button i call
$('form').validate(); which i expect to stop form submission before executing the following lines.
but the actual behavior is it executes the validate() line and continues to the remaining lines of submit method.
i have included jquery.validate.js and the jquery 1.9.js and the screen.css in my page.
Also, i have added required attribute to my input control and i see it in the IE dev tool.
function btnSubmit_onlClick()
{
$('form').validate();
// code to submit data....
}