Answers for "change css on click"

1

jquery onlcick css change

$('.colors-list li').click(function(e){
    $('.results').css('background-color', 'red');
});
Posted by: Guest on March-19-2021
3

css onclick change color

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

Code answers related to "Javascript"

Browse Popular Code Answers by Language