I just need to highlight a div by changing its background color for just a moment on page load. I dont want to include jQuery UI plugin just for this.
Is there is any way to do this just by pure jQuery 1.4?
$("div").addClass("highlight");
setTimeout(function() {$("div").removeClass("highlight");}, 500);
.highlight {
background: red;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With