I have been able to successfully use validator.validate() in my pages until now where I am loading content dynamically from a partial view.
$("#mydiv").append( $.get ... partial view );
Here are the facts of what is happening.
$("#mydiv").append( $.get ... partial view );
Here are the facts of what is happening.
- I load partial page with a form and validation rules dynamically.
- When the form submits the validation code is executed and the form is prevented from posting to the server when it is invalid..
- When I run the validate() function it doesn't return false like it should (ex. myvalidationform.validate() // returns and object instead of the expected false result when the data is invalid in the form.
Please someone uncover this mystery for me.