Answer the question
In order to leave comments, you need to log in
Why doesn't Uikit find jquery?
Hello. Bitrix site. I want to make a modal authorization window, I took the material from the link
https:// tuning-soft .ru/articles/bitrix/ajax-login-form-and-registration-bitrix-jquery-ajax-part-3 .html
This method uses Uikit . But for some reason it doesn't work on my site.
Throws Uncaught Error: UIkit requires jQuery
jQuery is included. some scripts on the site already work with it, including fancybox
Connected earlier than scripts with uitkit
< scri pt type="text/javascript" src="/bitr ix/templates/lapti-star/js/jquery-1.11.2_min. js">< / scri pt>
< ?//auth js
$APPL ICATION->AddHeadScript('/bitri x/templates/.default/auth/js/core.min.js');
$APPLICAT ION->AddHeadScript('/bitr ix/templates/.default/auth/js/modal.min.js');
$APPLICAT ION->AddHeadScript('/bitri x/templates/.default/auth/js/form.password.min.js');
$APPL ICATION->AddHeadScript('/bitr ix/templates/.default/auth/auth.js');
? >
What could be the reason?
Thank you.
Answer the question
In order to leave comments, you need to log in
You include jQuery via the script tag
connect using Bitrix API
$APPLICATION->AddHeadScript(SITE_TEMPLATE_PATH . '/js/jquery-1.11.2_min.js');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question