I have the following jquery function
$(function(){
$('.buttonEffectWrapper a').not('#browse-all a').hover(function(){
pauseResume();
var imageBrowserContent = $('#mainImageBrowser').html();
$('#mainImageBrowserTabButtonWrapper, #slideshow > div')
.animate({opacity:"0"}, {duration:250});
ajaxFunction('footer');
alert(imageBrowserContent);
},
function(){
alert(imageBrowserContent);
})
} );
On mouseover, I copy the contents of #mainImageBrowser
to variable imageBrowserContent
It then does an Ajax function which replaces the html content of #mainImageBrowser
and then alerts me of what the contents are. All of that works.
My intent was to then replace #mainImageBrowser
with the original contents, which would be stored in imageBrowserContent
. I couldn't get this to work, so I put alert(imageBrowserContent);
and no alert every pops up. What am I missing? If I put a text string in the alert, it popups fine, so I am confused...