I’m working on a little problem. I have <li> elements and I want to change their
background color on each click. In my code, I am trying to count the clicks.
If the click = 1, then the background color would be red. If the click = 2, then the background color would be blue. If the click = 3, the background color would revert to the original and the count will be back to 0;
I’m working on a little problem. I have <li> elements and I want to
Share
Is this what you need?
see: http://jsfiddle.net/j8s3D/12/