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?
The whole code is at http://www.jakelauer.com/jquery/bgFade/jquery.bgFade.js
Being used at jakelauer.com/jquery/bgFade