jQuery .find() not working in IE
Posted
by Jake
on Stack Overflow
See other posts from Stack Overflow
or by Jake
Published on 2010-05-02T23:50:48Z
Indexed on
2010/05/02
23:58 UTC
Read the original article
Hit count: 204
I have a function trying to run this:
if ( action=='fadeIn' ) {
if ( $( this ).css( 'position' ) == "static" ) {
$( this ).css( {position: 'relative'} );
}
$( this ).append( '<span class="bg_fade">' )
}
var fader = $( this ).find( '.bg_fade' );
alert(fader.attr('class'));
It works fine in Firefox, but in IE, the alert returns undefined. Any ideas?
© Stack Overflow or respective owner