Closed SingingBush closed 9 years ago
If I remember correctly, Nod 2 (currently being developed here) will have support for this kind of thing.
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
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
. :-)
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'});