---json
{
"page_id": "xz1gmolfkqrlwm42i4iyx"
}
---
====== ComboStrap - JQuery ======
===== About =====
''jquery'' is available in the [[release:deprecated:strap|strap template]].
===== Version =====
==== See ====
To get the JQuery Version, you need to open the [[kb>browser:console|Browser console]] and type
jQuery().jquery
// and
jQuery.ui.version
Example:
{{:strap:jquery_version_browser_console.png|}}
===== jQuery Conflict with Bootstrap 4 =====
If you use [[docs:theme:bootstrap|bootstrap version 5]], there is no conflict, only the Jquery of Dokuwiki is used.
Bootstrap 4 is packaged with a Jquery and therefore we have a conflict with the jQuery of DokuWiki and we need to choose.
By default, the jquery version is:
* for an anonymous user, the Jquery version of [[docs:theme:bootstrap#bootstrapversion|Bootstrap]] Bootstrap does not use Jquery-ui
* for a logged-in user, the [[doku>devel:jqueryfaq|Jquery version of Dokuwiki]].
You can change this behavior with the [[#JqueryDoku|JqueryDoku configuration]] in order to use only the Jquery bundle of DokuWiki.
===== Configuration =====
==== jQueryDoku ====
As [[release:archive:1.13_bootstrap5|Bootstrap 5]] does not use Jquery anymore. This configuration become obsolete from [[release:archive:1.13|release 1.13]]
The ''JqueryDoku'' configuration tells the stap template to use the Dokuwiki Jquery and not the Bootstrap Jquery Version for anonymous users.
It may add inconsistency with Bootstrap. If you need a front-end component that use ''Jquery UI'', [[:support|contact us]] to see if there is not already a ''bootstrap'' component.
Since [[release:release|version 1.6]]