JQuery and Inline & External CSS -
JQuery and Inline & External CSS -
i know next jquery remove attribute image tag
$('img').removeattr('height');
in
<img src="images/abc.jpg" alt="image 1" height="30px" width="30px" />
but how can same if img tag in in next format?
<img src="images/abc.jpg" alt="image 1" style="height:30px; width:30px;" />
also how same if css in in external file
<img src="images/abc.jpg" alt="image 1" class="imgclass1" />
if
$('img').css('height', '');
jquery remove height
style element
removes property element if has been straight applied, whether in html style attribute
jquery css
Comments
Post a Comment