I recently came across the problem of validating dynamically generated forms with the jquery.validate plugin – everything worked well with the original form, but when there were multiple forms available I got peculiar syntax errors. A quick googling told me to simply add the following code
$(“form”).validate();
to the javascript and everything would be fine. I tried that to no avail. Then I read things more closely and realized that I needed to specify which form I wanted to validate, I changed the code to
$(“#editForm”).validate();
And voila! Problem so.
|
Written By Steve French |
Deprecated: File Theme without comments.php is deprecated since version 3.0.0 with no alternative available. Please include a comments.php template in your theme. in C:\home\site\wwwroot\Blog\wp-includes\functions.php on line 5653
Leave a Reply