Side navigation
#13046 closed bug (notabug)
Opened December 13, 2012 10:57AM UTC
Closed December 13, 2012 01:22PM UTC
Attribute Not Equal Selector does not work properly
Reported by: | Alex Tokar <alex.tokar@gmail.com> | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.8.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Attribute Not Equal Selector does not work if element selector is not set explicitly. Fo the next sample color is set for all elements:
<div id="a">a</div> <span id="b">b</span> <a id="c" href="#">c</div> <script type="text/javascript"> $(function(){ $('[id!="a"]').css('color', 'red'); }) </script>
Demo at jsFiddle: http://jsfiddle.net/Cardinale/bEQZp/