I am having trouble applying a style that is !important. Ive tried:
$("#elem").css("width", "100px !important");
This does nothing, no width style whatsoever is applied. Is there a jquery-ish way of applying such a style without having to overwrite cssText (which would mean id need to parse it first etc)
Edit: i should add that i have a stylesheet with an !important style that i am trying to override with an !important style inline, so using .width() and the like does not work since it gets overrridden by my external !important style.
Also, the value that will override the previous thing is computed, so i cannot simply create another external style.