assign !important through javascript

By shaikhmo
In June 25, 2014

In general, we usually do change the style of an DOM element through javascript by getting them by id like


But what if we want to add “!important” along with the value.

Using the above way to add !important to the height, will not really work. for making it work, I’ve used the following available method






Leave A Comment