I’ve got code:
<div class="container">
<div class="box">somethung here</div>
<div class="box">somethung here</div>
<div class="box">somethung here</div>
<div class="box">somethung here</div>
<div class="box">somethung here</div>
</div>
How to do this:
When I click on a div.box It will have for example red background, and when I click another div.box It will also have red background, but the previous clicked div.box will return to default.
This should do the job
http://jsfiddle.net/chridam/XzQ5h/