Having probs adding a class to a class… Have had a google and tried a few diff ways but no luck.
I’m trying to change the layout views of panels by adding a class to a class…
html is like so…
JQuery is only ever required if you use JQuery. Anything that JQuery can do can also be done using ordinary JavaScript (since JQuery is written in JavaScript).
In this situation where container contains all of the nodes from the page that have the first class you simply need to loop over those to see which ones have the second class.