Javascript examples for jQuery Method and Property:fadeOut
JQuery fadeOut and fadeIn
<html> <head> <script src="https://code.jquery.com/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() { $('#clickme').click(function() { $('#book').fadeOut(500, function() { $('#book').fadeIn(500); });/*from w ww. j a v a2s .c o m*/ }); }); </script> </head> <body> <h1 id="book">this is book tag</h1> <button id="clickme">button here</button> </body> </html>