how to make a div a color after focus 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');
});