I want to load the key value pairs from a class, or id, in a CSS stylesheet into a JavaScript object in order to access the data.
Note that I do NOT want to add that class to a DOM element (at least not directly)
The only way I can see in JQuery is to create a dummy hidden element, add my class to it using
$(“#dummy").addClass(“myclass”);
and then query that using
$(“#dummy”).(cssproperty);
But even there I want to see each css property, without knowing what they are in advance.
What I really need is something simple that loads a CSS class into a hash. I'm not seeing that in jQuery... is there something in regular JavaScript?
thanks --Rob