Streaming live at 10am (PST)

Troubles with Jquery and 'w--current' class

Hello, everybody!

I use external jquery scrpit to put ‘w–current’ class on my tab link. the code is very simple

$(function(){
    $(document).ready(function(){	 
	    $("a#t3").addClass('w--current');
    });
});

But ‘w–current’ does’t appear! If i use another name, like ‘w-current’ or ‘w-current2’ - everything is good.

Also it works, when i use $("a#t3").addClass('w--current'); in console in my Chrome developer tools.
Here is screenshot http://joxi.ru/KAgKlY8u4d4vKA

Is it bug or feature? And how to solve this problem?

Welcome (Code Help)

Welcome to the Webflow forum!

Could you please edit Screenshot_2017-08-16_140811 and provide ALL the necessary details in your post so we can take a look at your site/issue?

In future if you want faster replies and more accurate answers, I suggest including all the details listed in the link above before someone has to ask.

Hope to hear from you soon. Thanks!

This topic was automatically closed after 60 days. New replies are no longer allowed.