Soft Soft - 6 months ago 13
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

Apparently it's possible to do this in jQuery:

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

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