jQuery is not defined
-
hi, I added this jQuery code to the plugin (FYI the site is not online, I’m coding in local) :
jQuery(document).ready(function( $ ){
animateProgress();
function animateProgress() {
$(‘.progress .progress-bar’).each(function() {
var bottom_object = $(this).offset().top + $(this).outerHeight();
var bottom_window = $(window).scrollTop() + $(window).height();
var progressWidth = $(this).data(‘progress-value’) + ‘%’;
if (bottom_window > bottom_object) {
$(this).css({
width: progressWidth
});
$(this).find(‘.progress-value’).animate({
countNum: parseInt(progressWidth, 10)
}, {
duration: 2000,
easing: ‘swing’,
step: function() {
$(this).text(Math.floor(this.countNum) + ‘%’);
},
complete: function() {
$(this).text(this.countNum + ‘%’);
}
});
};
});
};
});And keep getting error message from the console : “Uncaught ReferenceError: jQuery is not defined at (index):433”
The topic ‘jQuery is not defined’ is closed to new replies.