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.
Try inverting the: Attribute Ends With Selector [name$="value"]. with jQuery(':not(selector)').
Something like this: :not([name$="value"])
Try:
Something along the lines of
Should do the trick!
Edit: alternatively
I think this would work, using links as an example -
Demo - http://jsfiddle.net/CJH2M/