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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -