css keep focus color on div after click code example
Example 1: css keep focus color on div after click
button.selected{
color:red;
}
Example 2: css keep focus color on div after click
$('button').on('click', function(){
$('button').removeClass('selected');
$(this).addClass('selected');
});
Example 3: css keep focus color on div after click
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<button>Item</button><button>Item</button><button>Item</button>