I am using jQuery litebox. After adding JS and CSS files I got this error TypeError:
$(...).on is not a function at this line in js file
I tried the solution of Oskar (and many others) but for me it finaly only worked with:
jQuery(function($){ // Your jQuery code here, using the $ });
See: https://learn.jquery.com/using-jquery-core/avoid-conflicts-other-libraries/