I am having trouble applying a style that is !important. I’ve tried:
!important
$(\"#elem\").css(\"width\", \"100px
The safest workaround to this is to add a class and then do the magic in CSS :-), addClass() and removeClass() should do the work.
addClass()
removeClass()