Skip Navigation

[Resolved] #391 Uncaught TypeError: $ is not a function

This support ticket is created 2 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 2 replies, has 2 voices.

Last updated by romanB-3 2 years, 4 months ago.

Assisted by: Shane.

Author
Posts
#2443581

On hidden link, under the tabbed list, when I click "Voir sur la carte" it throws a console error : "Uncaught TypeError: $ is not a function"

Code is :

jQuery(".js-wpv-addon-maps-focus-map").click(function() {
    jQuery('html, body').animate({
        scrollTop: $("#js-wpv-addon-maps-render-carte-points-de-vente").offset().top - 100
    }, 1000);
});

jQuery( document ).ready(function(jQuery) {
    jQuery('.panel-heading').click(function(e){
    	jQuery('.panel-collapse').removeClass('in');
    });
});

Thanks.

Note : hidden link

#2443645

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Roman,

Thank you for getting in touch.

I can see on line 3 you have a $, can you replace it with jQuery.

Thanks,
Shane

#2443665

My issue is resolved now. Thank you!