I need to select elements in jquery, attibute values of which do not end with a specified substring.
It must be an equivalent to "match all elements but those that end with a given substring in that attribute".
So that e[a!@#=finstr]
matches e, e a="finstring"
etc, and does NOT match e a="somethingfinstr"
, e a="finstr"
.
Help, thanks.
Something along the lines of
$(':not([name$="finstr"])')
Should do the trick!
Edit: alternatively
$(selector).not('[name$="value"]');
I think this would work, using links as an example -
$("a:not([id$='hello'])"
Demo - http://jsfiddle.net/CJH2M/
Try inverting the: Attribute Ends With Selector [name$="value"].
with jQuery(':not(selector)').
Something like this: :not([name$="value"])
Try:
$('*').not('[attribute$="finishstring"]')