$(document).ready(function(){
$("#items").children().click(function(){
$(this).toggleClass('clicked');
});
});
.clicked {
background-color:red;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<div id='items'>
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
</div>
In the current setup, clicking on a div makes it turn red. However, you can click on multiple divs to turn them all red. How can I modify the code so that only one div is highlighted in red at any given time?