Uncaught TypeError: Object [object Object] has no method 'jCarouselLite' Getting this error on implementing jcrousel [closed]

StackOverflow https://stackoverflow.com/questions/21585531

سؤال

I tried restoring all options of slider of jcrousel. It result in error that function jcrousellite not found.

I was working on http://stepgndec.in

Error not yet resolved.

هل كانت مفيدة؟

المحلول

You have 2 versions of jQuery loaded on that page. The jCarouselLite plugin is attached to the first instance of jQuery that loaded. Currently, you are getting a reference to the second jQuery that was loaded via the .noConflict() call...

var $jx = jQuery.noConflict(); 
$jx(function() {
    $jx(".mygallery").jCarouselLite({
        btnNext: ".next",

Change it to use the original jQuery object and you should be good...

var $jx = jQuery.noConflict(); 
$(function() {
    $(".mygallery").jCarouselLite({
        btnNext: ".next",
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top