There are many a times it happen that you need to remove a particular css style only for an element (say div). You can remove that style property using jquery.
Say for example, you have a div like this:
<div id="mydiv" style="overflow:auto;float:left">
div content
</div>
Now, if u want to remove the "overflow" style only from the above div, then you can do it in jquery as follows:
$(#div).css("overflow", "");
The above code will remove the "overflow" style from the div.
Say for example, you have a div like this:
<div id="mydiv" style="overflow:auto;float:left">
div content
</div>
Now, if u want to remove the "overflow" style only from the above div, then you can do it in jquery as follows:
$(#div).css("overflow", "");
The above code will remove the "overflow" style from the div.
No comments:
Post a Comment