jquery click is not a function
-
The GTranslate dropdown no longer works on the published site. It does work when I load the customizer, but outside of that, I get the error: “Uncaught TypeError: jQuery(…).click is not a function at (index):705:31”.
Line 705 says: jQuery(‘.switcher .selected’).click(function() {jQuery(‘.switcher .option a img’).each(function() {if(!jQuery(this)[0].hasAttribute(‘src’))jQuery(this).attr(‘src’, jQuery(this).attr(‘data-gt-lazy-src’))});if(!(jQuery(‘.switcher .option’).is(‘:visible’))) {jQuery(‘.switcher .option’).stop(true,true).delay(100).slideDown(500);jQuery(‘.switcher .selected a’).toggleClass(‘open’)}});
Any insight would be much appreciated!
The page I need help with: [log in to see the link]
- The topic ‘jquery click is not a function’ is closed to new replies.