JQuery get html content INSIDE div - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:html

Description

JQuery get html content INSIDE div

Demo Code

ResultView the demo in separate window


<html>
 <head> 
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> 
 </head> //  www .ja va 2s  .com
 <body> 
  <div id="content-slider"></div> 
  <script>
(function($) {
  var loading = $("<p>").html("Loading...").appendTo(document.body);
  $("#content-slider").parent().load("/my/1 #content-slider", function() {
    loading.remove();
  });
})(jQuery);

      </script>  
 </body>
</html>

Related Tutorials