Answers for "on focus div change div background color"

CSS
14

css focus change color

<style>
.dabutton:focus {
    background-color:yellow;
}
</style>
<button class="dabutton"></button> // <-- usage
Posted by: Guest on July-03-2020
0

css keep focus color on div after click

$('button').on('click', function(){
    $('button').removeClass('selected');
    $(this).addClass('selected');
});
Posted by: Guest on February-17-2021

Code answers related to "on focus div change div background color"

Browse Popular Code Answers by Language