Richard
Richard

Reputation: 6116

JQuery Tables Validation

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.

Upvotes: 0

Views: 2785

Answers (1)

Lance
Lance

Reputation: 3213

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/

Upvotes: 2

Related Questions