开发者

Change board color to red on input validation with jquery?

开发者 https://www.devze.com 2023-01-20 17:17 出处:网络
Does anyone have an开发者_如何学JAVAy examples of input validation changing the input border color to red?

Does anyone have an开发者_如何学JAVAy examples of input validation changing the input border color to red?

Thanks.

Erik


It's best to keep as much of the styling as you can in the style-sheets. Defined a

input.invalid {
    border: solid red 1px;
}

and use .addClass("invalid") on your elements

0

精彩评论

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