If one class exists and the other class doesn't exist
Hi,
This code should say that: if one class exists and the other class doesn't exist, do something
- if( $('.file').length && $('.table-striped') == 0 ) {
- // Do something
- }
Is there any error in the above code?
Thanks