Skip to content
Advertisement

Javascript not triggered

I want to trigger the js function when the class subcat-tab is clicked, but it seems not to be working. I don’t have any error messages but nothing is happening.

I’m under a phtml file from Magento 2.

JavaScript

Advertisement

Answer

Using require instead of define fix it somehow but don’t really know why.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement