DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+9 =
Submit