I am having trouble applying a style that is !important. I’ve tried:
!important
$(\"#elem\").css(\"width\", \"100px
I think it works OK and can overwrite any other CSS before (this: DOM element):
this.setAttribute('style', 'padding:2px !important');