jQuery属性选择器:什么但不是以指定的字符串结尾?

我需要在jquery中选择元素,其中的attibute值不以指定的子字符串结尾

它必须等同于“ 匹配所有元素,但那些以该属性中给定子字符串结尾的元素 ”。

所以e[a!@#=finstr]匹配e,e a="finstring"等,并且不匹配e a="somethingfinstr" ,e a="finstr"

帮助,谢谢。

有点像

 $(':not([name$="finstr"])') 

应该做的伎俩!

编辑:或者

 $(selector).not('[name$="value"]'); 

我认为这可行,以链接为例 –

 $("a:not([id$='hello'])" 

演示 – http://jsfiddle.net/CJH2M/

尝试反转:属性结束选择器[name $ =“value”]。 用jQuery(’:not(selector)’)。

这样的事情:: not([name $ =“value”])

尝试:

 $('*').not('[attribute$="finishstring"]')