CodeIgniter Forums
Using jQuery Validate without using unique field names? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Using jQuery Validate without using unique field names? (/showthread.php?tid=46595)



Using jQuery Validate without using unique field names? - El Forum - 11-07-2011

[eluser]Unknown[/eluser]
I currently am working on validating a form in which it's content is generated by an array. I am using the jQuery validate() plugin. It is very lightweight and works wonders, but seems to break once it reaches the next field. It appears it needs unique field names in order to continue validation. Is it possible to use this plugin without needing unique field names? I'm looking to just validate any available input on the view.

The only input type on this view is "file" for reference. The only other option I could think of using this plugin is trying to append an incrementing variable to the name="" on each field during the foreach loop.

Any thoughts?

Thanks!