Jquery css: applying !important styles

Posted by mkoryak on Stack Overflow See other posts from Stack Overflow or by mkoryak
Published on 2010-04-16T20:31:13Z Indexed on 2010/04/16 20:33 UTC
Read the original article Hit count: 284

Filed under:
|
|

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)

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about css