Reputation: 13372
Any way to do this in jQuery?
Doing some change event based validation of elements. When they tab or click out, I'd like to, if there was an error in the validation, to glow the input field a bit rid for a half second to let them know something was wrong.
Any way to do this easily in jQuery? I was thinking along the lines of animate() and a border property but this is a inputfield....
Upvotes: 1
Views: 2313
Reputation: 39882
How about something like this:
You can use a wrapper div and apply some css3 styles.
div.highlight {
-webkit-box-shadow:0 0 15px red;
-moz-box-shadow: 0 0 15px red;
box-shadow:0 0 15px red;
}
Upvotes: 1