css :focus change color only then button clicked second time code example
Example 1: css keep focus color on div after click
$('button').on('click', function(){
$('button').removeClass('selected');
$(this).addClass('selected');
});
Example 2: css keep focus color on div after click
button.selected{
color:red;
}