javascript - Fade in jquery div show -
i trying below script fade in , fade out delay in between. shows div correctly , fades out should, doesn't fade in?
<?php if(isset($_get['updated'])) { ?> <div id='updated'><p>the product added shopping cart</p></div> <script src="http://code.jquery.com/jquery-latest.js"></script> <script type="text/javascript"> $('#updated').fadein(800).delay(3000).fadeout(800) </script> <?php } ?>
many thanks!
its because showing
<div id='updated' style="display:none">
fixes it
Comments
Post a Comment