Let's say I have a div.foo
with this CSS:
.foo {
height: 70vh;
}
And I change the height of div.foo
with jQuery like this:
$('.foo').height(100);
How do I reset the CSS of div.foo
so its height is rendered 70vh
again?
One solution that works is to reload the entire CSS file this way. But I wonder if there is a solution to only reset the CSS of div.foo
, not the entire stylesheet?