The first argument to on()
can be a space-delimited string of the event names, instead of an object:
$(document).on('mouseleave mouseenter click', '.MyDivs', sameOperation);
CLICK HERE to find out more related problems solutions.
The first argument to on()
can be a space-delimited string of the event names, instead of an object:
$(document).on('mouseleave mouseenter click', '.MyDivs', sameOperation);
CLICK HERE to find out more related problems solutions.