1

I'm using jQuery validation engine for field validation

On page load there are already fields available, and the validation works correct for them, but there are some buttons which add fields dynamically, and those validations won't work obviously :) I tried initializing the instance again but it doesn't work.

Is there a method by which I can manually add validation instance to those field which I have added dynamically

EDIT: Sorry forgot to mention, I'm using this plugin http://www.position-relative.net/creation/formValidator/index.html

Thanks, Mo

2
  • 1
    post some codes what you've tried Commented Nov 8, 2012 at 6:15
  • jQuery Validation plugin will validate all fields in HTML that is marked to require validation. Commented Nov 8, 2012 at 6:17

1 Answer 1

1

This article helped me very much: http://xhalent.wordpress.com/2011/01/24/applying-unobtrusive-validation-to-dynamic-content/

You should validate a container in which you have dynamically added elements

Sign up to request clarification or add additional context in comments.

1 Comment

I am sorry but the plugin I am using is position-relative.net/creation/formValidator/index.html, not the basistance one which is mentioned in the link above. :(

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.