Answers for "onclick add and remove css jquery"

CSS
1

jquery add remove class clicked element

$(function() {
    $('img').click(function() {
       $(this).toggleClass('active');
    });
});
Posted by: Guest on January-19-2021
1

how to remove css from element using jquery

$('#tag-id').removeAttr('style');
Posted by: Guest on December-04-2020

Code answers related to "onclick add and remove css jquery"

Browse Popular Code Answers by Language