Problem reading element attributes with jQuery in IE7

Posted by lbolognini on Stack Overflow See other posts from Stack Overflow or by lbolognini
Published on 2010-03-23T15:03:16Z Indexed on 2010/03/23 15:13 UTC
Read the original article Hit count: 246

Filed under:
|
|

I swear the following code used to work, even in IE7 but now i get

Error: Object doesn't support this property or method

$('div').each(function() {
  if(! this.attr('id').startsWith('light') ) {  
    this.css('zIndex', zIndexNumber);
    zIndexNumber -= 10;
  }
});

Any ideas?

© Stack Overflow or respective owner

Related posts about ie7

Related posts about jQuery