needs improvement - JS. Proper Event Binding

#1

Hey,

Our HTML template has been soft rejected for the following reason:

PROPER EVENT BINDING: Consider using the preferred .on() method
rather than .click(), .bind(), .hover(), etc. For best performance and
concise code use event delegation whenever possible: http://code.tutsplus.com/tutorials/quick-tip-javascript-event-delegation-in-4-minutes--net-896129

please can you help me , how can solve the problem

#2

Where you have in custom JS code, for example:

jQuery(’#selector’).click(…

replace with:

jQuery(’#selector’).on(‘click’, …

Ans so on for click, bind, hover, ready, load, resize…

#3

thks a lot