I am unable to remove CSS property for a HTML tag.
I am trying to remove position style property from css. Actually it's coming from parent, I am able to override it with my css file but i want to remove postion property completely as per my requirement.
Below code, I tried, But it didn't work for me
$("p").removeProp("position");
Example for my code (Note: I don't have any className for P tag)
$("p").removeProp("position");
p {
position: static;
font-size: 18px;
color: red;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<p>
Hello Stack Overflow
</p>