LOL! That and AJAXIFY it.Lemme guess, the site you just redid was tables and you're converting them to CSS?
Well, we cant always expect our clients to pay for our education. You'll have good tools after this one.Damn. I should have charged more!
Yeah.... not a good idea....This works, but a bit hackish....
Hmmm..... are you sure????The problem i'm having with using one 'anyerror' var is that when an element is correct, it changes the anyerror back to true.
anyerrors=(!ok ? true : anyerrors);
What this should do is, set anyerrors to false first then, if we get a 'false' (!ok) from the validation, we set anyerrors to true.
If the validation returns tru, then we just do a dummy operation of making anyerrors equal anyerrors.
Problem is, if your validation doesn't return anything, I think THAT is the problem. Try this instead
anyerrors=(ok==false ? true : anyerrors);
This way if you slipped and did not return an explicit true, which I will bet is the issue here, it will explicitly look for a false.
!ok is false, OR no value.