开发者

use additional cssErrorClass in Spring::Form

开发者 https://www.devze.com 2023-03-08 07:38 出处:网络
I h开发者_StackOverflow社区ave this input field: <form:input path=\"deliveryAddressFirstName\" id=\"deliveryAddressFirstName\" cssClass=\"text\" cssErrorClass=\"error\"/>

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

精彩评论

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