My task is to load the contents of the selector from another page. There is a load () method in the jQuery framework. So, this method loads the selector and its insides, and I need to load only the insides. So the question is - how can this be turned?

  • Please supplement the question with examples, so that the people who are trying to help you, it was obvious what results you want to achieve - Kir_Antipov

1 answer 1

Specify the correct selector

$("result").load("test.html #my_div > *") 

Pull out all the children of the element with id="my_div" from the test.html page