whatgoodisaroad / validity

Client-Side Validation for jQuery
http://whatgoodisaroad.github.io/validity/
132 stars 74 forks source link

fix border for TR errors #47

Closed markvantilburg closed 10 years ago

markvantilburg commented 10 years ago

Fixes the class on tables where it was put on the TR. As for a TR border does not work.

E.g. in this case:

whatgoodisaroad commented 10 years ago

I'm not sure that this belongs in the library itself. I think very few people would use tables for the error output, and, even if someone wants to, it's easy enough to write your own CSS rule separately.

markvantilburg commented 10 years ago

After validating

4. keuze meerdere antwoorden - selectievakken*
Select at least 1 response and no more than 5 responses.
 

 

Before validating

4. keuze meerdere antwoorden - selectievakken*
Select at least 1 response and no more than 5 responses.
 

 

Where the answerCount is the count of selected checkboxes, in this case there need to be selected at least one. Then it will put the label on the TR.

I believe the packed .css file should include this fix as borders do not work on TR.