Soft Soft - 2 years ago 86
Javascript Question

How to include !important in jquery

I am trying to add !important in the css attribute using jQuery like

$("tabs").css('height','650px;!important');


but !important has no effect. How to include !important in jquery?

Answer Source

Apparently it's possible to do this in jQuery:

$("#tabs").css("cssText", "height: 650px !important;");

Src: http://bugs.jquery.com/ticket/2066

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download