Is it possible with jquery to add new style declarations?
For example, pass:
{ "body": { "font-size": "12px" }, "table": { "xyz": "123" } }
etc etc
to a function I don't know without having to select those elements and do it like this:
$('body').css({"font-size": "12px"});
$('table').css({"xyz": "123"});
And second part of the question, is it possible to set css for the :hover pseudo class with jquery or do I need to use the .hover() function? If possible I just want css applied and not have to deal with on mouse in / out functions.
$('#element').find('a.thumbnail:hover').css({'background-color': '#efefef' });
does not work.
Thanks, Wesley