[jQuery] attr ie bug

2008-01-31 Thread hcvitto
hi i'm using this code to add the target=_blank attribute to links. $(a[href]).each(function(){ if ($(this).hasClass(ppt) || $(this).hasClass(pdf) || $ (this).hasClass(allegato) || $(this).hasClass(doc) || $ (this).hasClass(jpg) || $(this).hasClass(xls) || $

[jQuery] attr ie bug

2008-01-31 Thread hcvitto
hi i got this code working in firefox but not in IE. $(a[href]).each(function(){ if ($(this).hasClass(ppt) || $(this).hasClass(pdf) || $ (this).hasClass(allegato) || $(this).hasClass(doc) || $ (this).hasClass(jpg) || $(this).hasClass(xls) || $ (this).hasClass(external) ||