showing results for - "how to add the click event into two element in jquery"
Kale
16 Jan 2017
1$('.class1, .class2').on('click', some_function);
2
Eleonora
23 Aug 2016
1$('.class1').add('.class2').on('click', some_function);
2
queries leading to this page
add event to multiple elements jqueryjquery on change multiple elementsadd onclick to multiple elements jqueryjquery click event set multiple elementjquery add 2 events to elementgive event listener to multiple elements at once in jqueryjquery add event handler to multiple elementsjquery same event on multiple elementsjquery add two events for one functionjquery multiple click events on same elementhow to attach two selector in on onclick event jquerytwo click events jqueryjquery add multiple onclick eventsjquery click handler for multiple elementsjquery click two elementsjquery multiple objects same functionadd two event in on 28 29 jqueryadding event listener to each p element in jqueryjquery add two events to functionjquery on click on two elementsjquery on click two functionsjquery click two eventscan i add two click event to a button and call it using jquerytow selector one event jqueryattach on click to multiple jqueryclick event on two same id jqueryjquery event on two elementsjquery click multiple elementshow to add multiple click event in jqueryjquery add click event to multiple elementsjquery add onclick to multiple elementsjquery add click event to multiple variableshow to add multiple click event on same class in jquerycan i give two dom events on the same element in jqueryjquery click several elementsadd two events to same element jqueryjquery two click events on one elementjquery click event multiple elementsevent click jquery two wayhow to add two event in jqueryset click event in two elements jqueryhow to add the click event into two element in jqueryjquery make two event on a functioncombine many element in one click event jqueryad click event on two ids jqueryadd 2 events to button jqueryjquery on multiple elementsjquery add liste in click event to multiple elementshow to add 2 on click function to one button in jqueryadd two events in jqueryjquery add multiple elements events to a functionjquery add element onclick to multiple elementsjquery apply click event to multiple elementsjquery add click to multiple elementshow to add the click event into two element in jquery