by evx · 14y ago · 0 comments
The "min_length(6)|required" isn't actual javascript code is it?
Would passing an object be better?
For example,
userForm.addValidation("username", "min_length(6)|required");
Becomes,
userForm.addValidation("username", {min_length:6, required:true});
Did I misunderstand something?
Thank you so much for this. I've no idea why I didn't think of this initially - but I've now rewritten the plugin to do this instead. Hope you like it - and thanks again!
Jack
Thanks!