I want to be add the following to a a page:
When a div is clicked, I want to:
You can use the jQuery UI's Highlight Effect:
$(".myDiv").effect("highlight", {}, 3000);
$(function() {
$(".myDiv").click(function() {
$(this).effect("highlight", {}, 3000);
});
});
.myDiv {
margin: 0px;
width: 100px;
height: 80px;
background: #666;
border: 1px solid black;
position: relative;
}