Using !important in jQuery’s css() function
There is a trick to do this. $(‘.ui-widget-overlay’).css(‘cssText’, ‘height:985px !important;’); $(‘.ui-widget-overlay’).css(‘cssText’, ‘height:1167px !important;’); cssText is doing the trick here. It is appending css styles as string, not as variable.