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
精彩评论