Okay, I'm calling a PHP using Ajax for a file upload.
else if (in_array($file_extn, $allowed)=== false){
echo '<script type = "text/javascript">window.alert("The only file types allowed are .jpg, .gif, .png");</script>';
echo '<script type = "text/javascript">$(document).ready(function(){$.parent("#loadimg").fadeOut();});</script>';
}
The alert works no problem but the second echo isn't working. It is not fadingOut the ID. What is the problem?