Until recently, I used $.load() to get a specific part of another page and load it into the current one, but when the user initiates these requests, they can queue, and I found that I need a way to interrupt them so that I don’t click - happy users violate my page.
This led me to $.get() , which works fine and allows me to cancel the request if another starts before the first return, but now I need to parse the returned html (this is a whole page with elements like doc and head) and get only one div from him.
How do I achieve this?
source share