tags:

views:

10

answers:

1

Does anyone have any examples of input validation changing the input border color to red?

Thanks.

Erik

A: 

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

bemace