Problem reading element attributes with jQuery in IE7
- by lbolognini
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?