Append to page from ajax call - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:ajax

Description

Append to page from ajax call

Demo Code

ResultView the demo in separate window

<html>
   <head lang="en"> 
      <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> 
   </head> 
   <body> 
      <div id="loadedContent"></div>  
      <script>
        $.get("http://java2s.com", function(data) {
            $('#loadedContent').append(data);
        });/*w  w w  .  ja v a 2  s. co  m*/
    
      </script> 
   </body>
</html>

Related Tutorials