开发者

Change board color to red on input validation with jquery?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜