Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

jquery add remove class clicked element


$(function() {
    $('img').click(function() {
       $(this).toggleClass('active');
    });
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript click 
Javascript :: installation of material ui core using npm 
Javascript :: react native display inline block 
Javascript :: calculate age based on date of birth in javascript 
Javascript :: js number to hex 
Javascript :: generate random numbers in js 
Javascript :: jquery get origin url 
Javascript :: js canvas draw polygon 
Javascript :: remove hidden attribute in js 
Javascript :: jquery get checked checkbox values array 
Javascript :: join array enclosing each value with quotes 
Javascript :: javascript sort chars in string 
Javascript :: read json file flutter 
Javascript :: nodejs open default browser on specific web page 
Javascript :: convert c to javascript 
Javascript :: xss test 
Javascript :: react router external link 
Javascript :: jquery grid get all selected row 
Javascript :: jquery check if audio is playing 
Javascript :: javascript pad with leading zeros 
Javascript :: React + modal: input field auto focus 
Javascript :: how to convert string to int a array in javascript 
Javascript :: load json 
Javascript :: yup only characters regex validation react 
Javascript :: install node js lts ubuntu 18.04 
Javascript :: jquery on event snippet 
Javascript :: console.dir depth 
Javascript :: jquery loop through list element 
Javascript :: jquery get today date 
Javascript :: javascript check if date is less than today 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =