Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery add remove class clicked element


$(function() {
    $('img').click(function() {
       $(this).toggleClass('active');
    });
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #add #remove #class #clicked #element
ADD COMMENT
Topic
Name
9+9 =