Answers for "ajax load spesific element from another page"

1

ajax load spesific element from another page

$.ajax({
   url:href,
   type:'GET',
   success: function(data){
       $('#container').html($(data).find('#content').html());
   }
});
Posted by: Guest on December-02-2020
0

ajax load spesific element from another page

$('#container').load('ajax/test.html #content');
Posted by: Guest on December-02-2020

Code answers related to "ajax load spesific element from another page"

Code answers related to "Javascript"

Browse Popular Code Answers by Language