!important from JS to an inline style.
Posted: Wed Aug 19, 2009 5:46 am
Hi, I'm trying to do:
to override an !important set on the element with CSS,
The !important doesn't fit in this way, is there a possible way?
Code: Select all
var xVar=100; ..... xVar+='px'; document.getElementById("elementId").style.height=xVar+'!important';Code: Select all
<textarea style="height:40px!important;"></textarea>