简体   繁体   中英

jQuery Validation engine Dynamic field validation

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM