Commit 4c19908
Richard Thompson
Allow custom HTML attribute "data-required-class" to override formError prompt class.
I was doing a project where I needed multi-tiered required fields. So "red" was for primary then make more classes for "secondary / tertiary" etc. So that
when the whole form was validated, the "required" alerts were all different depending on the class defined in the "data-required-class" attribute. Thought
it might be useful to others as well. Also added in support for prettySelect.1 parent 8b0f310 commit 4c19908
1 file changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1581 | 1581 | | |
1582 | 1582 | | |
1583 | 1583 | | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
1584 | 1599 | | |
1585 | 1600 | | |
1586 | 1601 | | |
| |||
0 commit comments