Skip to content

How to set style with important flag

Daisho Komiyama edited this page Feb 2, 2018 · 2 revisions

If you do this,

element.style.display = 'none ! important';

Not going to work. But if you write this way,

element.style.setProperty('display', 'none', 'important');

It should work but IE9<.

Clone this wiki locally