KB Article #180339

API Portal's Bootstrap does not make jQuery available via $

Problem

The jQuery included by API Portal's Bootstrap is not available via the usual $ alias.

Resolution

Joomla's Bootstrap is released using $.noConflict() so it is necessary to use the jQuery object instead of the $ alias, or to use an immediately invoked function, e.g.

(<span class="code-keyword">function</span>($) {
    <span class="code-comment">// everywhere inside <span class="code-keyword">this</span> immediately invoked <span class="code-keyword">function</span>, <span class="code-quote">'$'</span> can be used as an alias of jQuery.
</span>    $(<span class="code-quote">"#meumodal"</span>).modal(<span class="code-quote">"show"</span>); 
})(jQuery);