Answers for "css on click change"

CSS
1

jquery onlcick css change

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

css onclick change color

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

Browse Popular Code Answers by Language