jQuery Uncaught TypeError: Object # has no method 'on' I downloaded a jQuery Lightbox2 library (not module, just a raw library) and added the following in my custom module:

drupal_add_js($libpath . '/js/jquery-ui-1.8.18.custom.min.js');
drupal_add_js($libpath . '/js/jquery.smooth-scroll.min.js');
drupal_add_js($libpath . '/js/lightbox.js');


But it causes an error like this (see below debug printscreen):



Could someone tell me, what to do to get rid of the error?

After some googling I installed the JQuery Dollar module but the error is still there.  No clue what else to do.
on() was only added in jQuery v1.7; Drupal 7 ships with jQuery v1.4, and can be updated to 1.5 using the jQuery Update module. The reason you're getting the error is simply that the lightbox library you're using is written for jQuery v1.7 and above.

See How do I update jQuery to the latest version I can download? for some ideas on how to get round this.