Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

multiple class to same click jquery

$('.class1, .class2, .class3').click(function(){
	alert($(this).attr('data-id')); 
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: adding methods to objects javascript 
Javascript :: javascript fetch 
Javascript :: nuxt auth user info 
Javascript :: chain id 
Javascript :: javascript documentation 
Javascript :: image to base64 js 
Javascript :: find string length javascript 
Javascript :: react multiple classnames 
Javascript :: xml http request fetch 
Javascript :: render html in js.erb 
Javascript :: mui icons 
Javascript :: postmark with nodejs 
Javascript :: what does event emitter do in angular 
Javascript :: hooks developed by react native 
Javascript :: @input in angular 
Javascript :: js range similar to python 
Javascript :: hincrby nodejs 
Javascript :: for item loop 
Javascript :: insertadjacenthtml trong js 
Javascript :: claim faucets 
Javascript :: how to check is the key of a localstorage is emopty 
Javascript :: apollo uselazyquery oncompleted 
Javascript :: color picker in react js 
Javascript :: examples of Conditional Operator js 
Javascript :: javascript get name from steamid 
Javascript :: text animation css and js 
Javascript :: javascaript 
Javascript :: clone canvas 
Javascript :: today tomorrow day after tomorrow button html and javascript 
Javascript :: js sleep function 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =