How to select all other elements which have class table, but not this one: enter image description here
CodePudding user response:
If that is the only table with all those three classes you can select all those tables which don't have all those three classes using a CSS not pseudo class:
table:not(.table.table-hover.table-striped) {
background: magenta;
}
<table class="table table-hover table-striped">
<tr>
<td>table with classes table-hover and table-striped</td>
</tr>
</table>
<table>
<tr>
<td>another table</td>
</tr>
</table>
CodePudding user response:
$('.table:not(.table-striped)')