Thursday, 12 September 2013

Jquery fadeout of item, item doesn't reappear

Jquery fadeout of item, item doesn't reappear

I have my main page that contains a DIV that in turn contains an IFRAME.
When the user clicks the OK button in the IFRAME, I call a function in the
parent page that fades out the div with a Jquery fadeOut command. When I
try to make the DIV fade in once again, it doesn't. What am I doing wrong?
MAIN PHP PAGE:
<div id="regcontainer">
<iframe id="registration" src="register.html" frameborder="0"
allowtransparency="true" scrolling="auto"></iframe>
</div>
JQUERY COMMAND IN JS FILE INCLUDED IN THE MAIN PAGE, THAT FADES OUT THE DIV:
var closeIFrame = function() {
$('#regcontainer').fadeOut("fast");
}
Fade In:
$('#register').click(function() { $('#regcontainer').fadeIn("fast"); });

No comments:

Post a Comment