So I have a large form and I need to select all elements that have a specific identifier in their id value.
$("[id*=some-value]")
This works wonderfully! Now I need to filter out of these results any elements that have another key identifier in their id values
$("[id*=some-value]:not([id*=some-other-value])")
which obviously is not working for me.
Currently the only element I am filtering is a checkbox so I can just use
$("[id*=add-contact-form]:not(:checkbox)")
however I would still like to know how to combine the two selector methods.
What you already have seems to be working fine for me?
I suggest taking a look at your code and seeing if there is some underlying issue preventing that jQuery selector from working.
Take a look