I have a huge jQuery application, and I\'m using the below two methods for click events.
First method
$('#myDiv').click is better, because it separates JavaScript code from HTML. One must try to keep the page behaviour and structure different. This helps a lot.
$('#myDiv').click