Privacy Policy
Snippets index

  Check available jQuery version

(function($) {

    $(document).ready(function() {

        console.log($.fn.jquery);

    });

}(django.$));

Also .. as the admin already has (an older version) of jquery included, you can shortcut it for usage as follows:

add this to the top of the 'myscript' file:

if (!$) {
    $ = django.jQuery;
}