Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Learning jQuery…Have a few questions Re: Learning jQuery…Have a few questions

#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