How do I get the jQuery validation plugin to work on a form that's generated using ajax after the page loads? I have a from on my page that's returned from an ajax call, and the jquery validation plugin will not validate that form when I do like below. Any ideas on how to do this? When I submit the form, it submits the usual way, not using ajax
It's currently setup like this, where <form id="newRequest">
is generated after a user clicks a link on the page.
However, the plugin will not validate #newRequest
$("#newRequest").validate({
rules: {
},
messages: {
},
submitHandler: function() {
$.ajax({
//etc