fade effect for ajax loading - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:ajax

Description

fade effect for ajax loading

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <script type="text/javascript" src="https://code.jquery.com/jquery-git.js"></script> 
  <script type="text/javascript">
    $(window).on('load', function() {
$("button").click(function(){
    $("<div>This is a test</div>").appendTo(".content").hide().fadeIn();
});/*from  w w  w.j  a  va2  s .co  m*/
    });

      </script> 
 </head> 
 <body> 
  <div class="content"> 
  </div> 
  <button>Load More</button>  
 </body>
</html>

Related Tutorials