css :focus chnage color after click again button 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;
}