I am having trouble applying a style that is !important. I’ve tried:
!important
$(\"#elem\").css(\"width\", \"100px
You can achieve this in two ways:
$("#elem").prop("style", "width: 100px !important"); // this is not supported in chrome $("#elem").attr("style", "width: 100px !important");