Dmitrii 'Mamut' Dimandt schrieb:
Jörn Zaefferer wrote:
I'm gonna take a look at that library for some inspiration. And maybe
copy some validation methods (called rules at yav).
Let me know if you have any specific requests for the jQuery
validation plugin.
That would be the pre-condition, implies and post-condition. Those
definitely rule
That is an interesting concept that I'm currently trying to understand.
My plugin supports required-dependencies using expressions and
functions, but they have their limit.
This would make field2 required only if field1 is blank:
rules: {
field2: { required: "#field1:blank" }
}
But I can't express that either field1 or field2 is required. How would
I express that using pre/post-condition and implies?
--
Jörn Zaefferer
http://bassistance.de