I have label, which has classes status-label and unavailable. I want to count all those containing it and exclude those, which have also class named "hide"
<label class="status-label unavailable"> should be selected
while
<label class="status-label unavailable hide"> shouldn't
I have tried to count the result like this:
var invalidConfigs=$("label.status-label.unavailable").not(".hide").length;
this didn't work either:
var invalidConfigs=$("label.status-label.unavailable:not(.hide)).length;
"- jsfiddle.net/gn601536