i got a class,
div.domtab div{
clear:both;
width:auto;
background:#eee;
color:#000;
padding:1em 1.5em;
}
and i cannot change it, and i not able to remove it i tried
$('#tag1').removeClass();
$('#tag1').removeClass('.domtab');
$('#tag1').removeClass('div.domtab');
$('#tag1').removeClass('div.domtab div');
but it still not working.
clear:both cause all my div not float left.....
Considering your markup is like:
<div class="domtab">
...
<div id="tag1"></div>
...
</div>
You can remove the class by
$('#tag1').closest('.domtab').removeClass('domtab');
try $('#tag1').removeClass('domtab');
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