twitterfacebookgoogle plusrss feed

Pages

Wednesday, March 26, 2014

Uncaught TypeError: Property '$' of object [object Object] is not a function


If you are getting this error in WordPress then remember that WordPress loads jQuery with noConflict mode or any other application which loads with noConflict mode cause this error, you will no longer able to use jQuery shortcut ($) any more in this mode. On this point you have to use jQuery (case sensitive) instead jQuery shortcut $ (dollar sign) and if you want to use $ sign in code block than must pass $ (dollar sign) as function parameters;

jQuery(function($) {
    // now are able to use $ sign or jQuery
});

0 comments:

Post a Comment

comment or ask