I want to be add the following to a a page:
When a div is clicked, I want to:
One way is to go about like this using setTimeout:
$(function () { $('div.highlightable').click(function () { $(this).addClass('highlighted'); setTimeout(function () { $('div.highlightable').removeClass('highlighted'); }, 2000); }); });