I want to add the following to the page:
When I click on the div, I want:
- change the background color of the pressed button on the div for a few seconds.
- will return to the original background color after a few seconds.
I want to do this using only available jQuery functions, i.e. without using a plugin or anything else. I'm relatively new to jQuery, but I think a possible solution involves using the class change of the selected div and using a timer.
I'm not sure how to put it all together. Can someone provide some lines that show how to do this?
This is what I still have:
$(function(){ $('div.highlightable').click(function(){
jquery
morpheous
source share