I would like to remove parent styling added by a css stylesheet using Jquery. I Googled but all I can find is removing inline styles or classes
HTML
<p><span>text</span></p>
CSS
p{
width:300px;
height:200px;
border:solid 3px #000;
padding:10px;
font-size:23px;
}
span{
width:100%;
height:100%;
background: #ccc;
padding:10px;
}
I tried many Jquery variations, one of them:
$('span').parent().removeAttr( 'style' );