1

I've got a form that is happily using jQuery validation. I now need to modify the form to include a new form element that also requires validation. Unfortunately, jQuery is dying during the (new) validation process, presumably because I've changed the form in ways that it doesn't understand. Thus I suspect I need to reinitialize the validator on the new version of the form.

The question: How do I do this? Reinitialize jquery-mobile after inserting a form into the page offered a promising suggestion of doing something like $('#theform).trigger('create'), but that didn't work for me. Any advice out there?

Community
  • 1
  • 1
Jim Miller
  • 3,291
  • 4
  • 39
  • 57

0 Answers0