var jQuery = django.jQuery; var $ = jQuery; $(document).ready(function () { $('#id_body_markdown').after('40000 chars used '); $('#id_body_markdown').simplyCountable({ counter: '#counter', countType: 'characters', maxCount: 40000, strictMax: false, countDirection: 'up', safeClass: 'safe', }); });