Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

jquery add remove class clicked element


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

button remove class jquery

$("#buttonID").click(function(){
  $("#buttonID").removeClass("btn-default");
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: regex mobile 
Javascript :: how to make react host on https localhost 
Javascript :: remove the bottom selection line from materail ui 
Javascript :: convert html table to pdf 
Javascript :: React clock via props 
Javascript :: javascript custom table 
Javascript :: react lifecycle 
Javascript :: jquery questions and answers 
Javascript :: does expo av support mp3 
Javascript :: sort an array in descending order javascript 
Javascript :: find the minimum number in an array javascript 
Javascript :: get 3 random items from array javascript 
Javascript :: page object 
Javascript :: javascript to typescript converter 
Javascript :: grouping related html form input 
Javascript :: how to get value of selected radio button in javascript 
Javascript :: how to validate image binary in node js 
Javascript :: javascript flow function 
Javascript :: jquery on mouseover and mouseout 
Javascript :: draw image inside canvas width 100% 
Javascript :: docker containerize node app 
Javascript :: how to hide javascript code from client 
Javascript :: angularjs checking array of objects 
Javascript :: how to replace img url using jquery on mobile screen 
Javascript :: set default value in dynamic dropdown angularjs 
Javascript :: Delete a field from Firebase Firestore where the field/key has a period/punctuation (".") - modular v9 JavaScript SDK 
Javascript :: ERROR Error: Uncaught (in promise): NullInjectorError: R3InjectorError(AuthModule)[AuthService - AuthService - AngularFirestore - InjectionToken 
Javascript :: How to access a preexisting collection with Mongoose 
Javascript :: Alternative Bind() Syntax For JavaScript 
Javascript :: input json decode 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =