0

I have a dynamic table setup on my page and am using this plugin to validate my entire form. Here is the code for my table.

I don't know why it won't work on fiddle but it works perfectly fine on the site. But the functionality is not the question, I'm wondering how I can use the validation plugin to validate the table inputs.

2
  • Doesn't work on fiddle because you selected MooTools instead of jQuery. Try this jsfiddle.net/dCQqQ/3 for the functionality. What validation are you trying to do? Commented Sep 17, 2012 at 21:37
  • @Lance I'm not sure I understand your question fully but I want to make sure that all the textboxes in the tables are at least filled for starters. Commented Sep 17, 2012 at 21:49

1 Answer 1

2

The validate plugin is based on classes. So to make sure every input has a value, add class="required" to the input. From there you can add specific types of validation like class="required email" to an email field that will make sure that the email field has a value and that the value is in an acceptable email format.

According to the doc for the plugin you may have problems with field names that are complex like yours.

This should get you started http://jsfiddle.net/dCQqQ/5/

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

Comments

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.