22

is there any way I can get the :not() pseudo-class to work in Internet Explorer 7/8? Is there any javascript that can do the same thing as the CSS3 :not()?

BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356

3 Answers3

8

Or you can use Dean Edwards IE7.js

Ionuț Staicu
  • 21,360
  • 11
  • 51
  • 58
6

Yes, as regards JavaScript, jQuery and MooTools support the :not pseudo-class selector.

http://mootools.net/docs/core/Utilities/Selectors#Selector:not
http://api.jquery.com/not-selector/

BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356
Cole
  • 1,483
  • 1
  • 11
  • 20
1

Try using this css3 selectors for ie:

http://selectivizr.com/

Rakesh Vadnal
  • 975
  • 1
  • 10
  • 22
  • Unfortunately :not is 'not' applied https://groups.google.com/forum/#!topic/ie-css3/4K4Q8pUMFTg – silversky Sep 04 '13 at 02:15
  • 1
    @silversky Selectivizr supports :not as of v0.9.7b. See changelog at https://github.com/keithclark/selectivizr/blob/master/changelog.txt – Heraldmonkey Nov 06 '13 at 10:18