casperin / nod

Plugin that gives you frontend validation for forms.
http://casperin.github.io/nod/
381 stars 137 forks source link

allow for validation of form inputs that do not exist when nod is setup #86

Closed SingingBush closed 9 years ago

SingingBush commented 10 years ago

I have a form which has some elements that are dynamically generated depending on other inputs. I'd like to validate them if they exist and ignore if don't but nod ignores any elements that did not exist when I called .nod(metrics, {submitBtnSelector: '#subBtn'});

chall8908 commented 10 years ago

If I remember correctly, Nod 2 (currently being developed here) will have support for this kind of thing.

casperin commented 9 years ago

That's true. I literally just released it, and it should be fairly easy to add and remove elements in that.

I was thinking about adding a functionality like "ignoreIfHidden". But that'll have to be v.2.0.1

casperin commented 9 years ago

I'll close the issue for now actually. When reflecting a bit on it, I'm not so sure I want a feature like that. I think I'd rather keep it simple, with just an add and remove. :-)