Here is my problem..
I have the option to create(add) two new input fields, as many times you want,at the same time i want to validate the input fields which are opened. how can i achieve this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Consider you are using a function
.validate()to attach the Validation Handler to the form. When you create a new field, you might be calling a function, saynewField(). In that, call the.validate()function again?In the JavaScript, where you insert:
So each time a new element is inserted, it will call the
.validate()function. Hope this helps.