use additional cssErrorClass in Spring::Form
I h开发者_StackOverflow社区ave this input field:
<form:input path="deliveryAddressFirstName" id="deliveryAddressFirstName" cssClass="text" cssErrorClass="error"/>
When an error during validation occurs, the CSS class of the element is changed to "error". However, I would like the CSS class to be "error text", as in: keep its regular class and add "error" instead of replacing it.
Is this possible?
Have you tried with cssErrorClass="error text"
?
精彩评论