I want to set width dynamically. I have tried:
iElement.find("#mycontent").css({width:iElement.width()+ 'px !important'});
In html:
<div id="mycontent"></div>
I am trying above syntax to get width on the div's id "mycontent". When I alert IElement.width(), i have the exact value. But when i add the above code, width is not setting on element or anywhere. I dont understand, why it is not working.
Please help.