Remove all css style sheet in child tag using JQUERY

Using JQUERY to remove all css style sheet



Html

<div id="postcontent">
        <div>content </div>
         <div style="padding:10px">
                <p style="height:100px"> content </p>
         </div>
</div>

Sctipt
<script>
    $(document).ready(function () {
        $("#postcontent").find('*').removeAttr('style');
    });
</script>
Reactions

Post a Comment

0 Comments