I've loaded the jQuery module in the dependencies ...
# suitecommerce
v
I've loaded the jQuery module in the dependencies of my View
s
Have you waited until the page has rendered before trying to use it? It won't work until the DOM is ready. If you want to access the DOM before then, you'll need to use the plugin container.
v
Ah, now I see what I was doing wrong. Thanks for that tip, Steve!
netsuite halo 1
m
Also is a good practice to use view rendered element instead changing things by pure jquery
view.$(“#element-id”).addClass(‘active’)
awalabs 2
v
That's another great tip. Thanks @Martin!