Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

jquery on change on multiple elements


$('.class1, .class2').on('click', function () {console.log('TODO...')});

//OR....

var elem1 = $('.class1');
var elem2 = $('.class2');
elem1.add(elem2).on'click', function () {console.log('TODO...')});
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript non-repeating randomize array 
Javascript :: dm message collector discordjs 
Javascript :: for loop array 
Javascript :: export e import javascript 
Javascript :: how to setup icomoon in react js 
Javascript :: navlink activestyle not working 
Javascript :: how to copy text from input through button click js 
Javascript :: how to write a javascript function 
Javascript :: nodejs exit code 
Javascript :: jquery select input 
Javascript :: Material-ui account tree icon 
Javascript :: show and hide div based on radio button click react 
Javascript :: nextjs query parameter 
Javascript :: how to disable strict mode on object in javascript 
Javascript :: get nearest location based on latitude and longitude javascript 
Javascript :: axios post request 
Javascript :: javascript add to object 
Javascript :: js remove all except numbers 
Javascript :: regex[ress for password 
Javascript :: validate email or phone js 
Javascript :: angular img src binding 
Javascript :: node check if internet 
Javascript :: react cdn 
Javascript :: javascript polling 
Javascript :: react native use route params 
Javascript :: js check if all array values are the same 
Javascript :: append textarea jquery with value 
Javascript :: mongoose user model example 
Javascript :: javascript submit form programmatically 
Javascript :: javascript how to remove the last character of the string 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =