I am having trouble applying a style that is !important
. I’ve tried:
$(\"#elem\").css(\"width\", \"100px
It may or may not be appropriate for your situation but you can use CSS selectors for a lot of these type of situations.
If, for example you wanted of the 3rd and 6th instances of .cssText to have a different width you could write:
.cssText:nth-of-type(3), .cssText:nth-of-type(6) {width:100px !important;}
Or:
.container:nth-of-type(3).cssText, .container:nth-of-type(6).cssText {width:100px !important;}