Home › Forums › JavaScript › Learning jQuery…Have a few questions › Re: Learning jQuery…Have a few questions
July 6, 2013 at 9:26 am
#141724
pixelgrid
Participant
$(‘my_selector’).click();
is a shorthand for
$(‘my_selector’).on(‘click’,function(){})
they are practically the same. you can avoid a function call by using directly .on