I wasn’t quite sure if this should go in the javascript or CSS section:
I have PHP script that will take every post on my site and make a DIV tag for it. The script also generates a menu for each post and gives that a unique ID. Javascript is required to make the menu appear and it references the menu by its ID so they must be unique. However, the CSS for every menu is the same. Is there a way to apply the same CSS to each menu even though they have different IDs (I don’t want to generate CSS for each menu)? If not, is there something else I can have the javascript reference the menu by besides the ID? It needs to be able to change the style of the menu in realtime. Thanks!