开发者

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"?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜