Can someone tell me why this doesn’t work in IE7 please and how to to best refactor it to work in IE7 as well as the other major browser such as Chrome, Firefox and Safari?
var validTabSet = $('[tabindex]:not([tabindex=-1]):not([type=hidden]):not([disabled=true])');
Thanks
David
You can factorize the selectors you pass to
:notinto a multiple selector:If it still fails on IE7, you can use the not() method instead of a selector: