I have a div with some class and I add some css using Jquery
$('.myClass').css("position","absolute");
After few steps I remove the class myClass
, using
$('.myDiv').removeClass('myClass');
But the style position:absolute
is not removing.
Any help will be much appreciated.
Please use removeAttr( 'style' )
.
Which is the jquery function to remove the element.style.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With