[TYPO3-german] jQuery Problem / Frage - $ is not a function

Gregor Hermens gregor at a-mazing.de
Sat Jan 28 15:48:59 CET 2017


Hallo Johannes,

Johannes C. Laxander wrote:

> jQuerry binde ich im head-Bereich gleich als erstes ein.
> In meinen Scripten bekomme ich aber diesen Fehler:
> jquery.min.js:2 jQuery.Deferred exception: $ is not a function TypeError:
> $ is not a function
> 
> ... 
> 
> Mein Script:
> 
> jQuery.noConflict();
> jQuery(document).ready(function() {
>                 $('.dropdown-toggle').dropdown();
> });
> 
> Was passt hier nicht zusammen?

http://api.jquery.com/jQuery.noConflict/

Korrekt wäre z.B.

jQuery.noConflict();
jQuery(function($) {
    $('.dropdown-toggle').dropdown();
});

hth
Gruß,
Gregor
-- 
http://www.a-mazing.de/   |   Certified TYPO3 Integrator



More information about the TYPO3-german mailing list