We can remove style of an element in Jquery in the following
ways-
Suppose we have a “div” control like this :
<div id="divGrid"style="max-height: 400px; overflow: auto; width: 100%;">
This is Test
</div>
1.
Remove style attribute of the “div”
$("#divGrid").attr("style", "");//for remove style of div
2.
Change width of the “div”
$("#divGrid").css("width", "1200px");// width of the div will be changed to 1200px
No comments:
Post a Comment