Assume I select a certain element and want to assign NOT only ONE but MULTIPLE css statements.
How do I do this?
For ONE .css() this works fine:
$(......).css({'background-color' : 'red'});
But what if I want to assign a new font-size as well?
Do I really have to write two separate lines?
I would appreciate if I could group them together into one line similar to
$(......).css({'background-color' : 'red', 'font-size' : '11px !important';});
but this does not work.
By the way: Is the !important statement necessary if it is applied through jQuery and an existing rule
should be overwritten?
Peter