Forums

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

Home Forums JavaScript jquery on click events Re: jquery on click events

#127819
JohnMotylJr
Participant

If the amount of clicks will be ‘insignificant’ than you can simply use .click(function() {. I would agree with doc that the naming conventions are a quite un-semantic. Whenever i am using a lot of JS i normally give the element an id and prepend ‘js-‘.

I suggest you give this article a good read.