Set up the handler when the form is created:

$("#the_form_id").validate();

You might also want to have a look at the Jeditable plugin:

http://www.appelsiini.net/projects/jeditable


On Wed, Jan 6, 2010 at 10:25 AM, John Albright <trumpetman...@gmail.com> wrote:
> Is it possible to use the jquery form validation plugin (http://
> bassistance.de/jquery-plugins/jquery-plugin-validation/) to validate a
> form that was inserted into the page via javascript? What I'm trying
> to do is display a person's address, which is contained in a span tag,
> and give them the option to edit it. If they click the edit button,
> I'm changing the span to a form tag with jQuery and turning the parts
> of the address into text boxes with the values filled in. The problem
> I'm having is that since the form doesn't exist from the very
> beginning, the validate function isn't getting assigned to it, and
> when the form is created and submitted, it doesn't get validated. Can
> I somehow make the plugin assign the validate function to the form
> when the edit button is clicked, or is that not possible?
>

Reply via email to