Jquery css: applying !important styles
- by mkoryak
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)