I need a jQuery selector that selects any elements that do not have a class containing the string '-text';
For example, in the following:
<img class="cow" > <img class="monkey" > <img class="cow-text" > <img class="monkey-text" >
I would like to choose:
<img class="cow" > <img class="monkey" >
I know that I need to use not , but I'm not sure about this format. The following results will not be selected:
$('.panel').find('.layer').not('[class*="-text"]');
source share