I have a page which basically loads using ajax, but I want to switch sevrel elements of it, most notably – the <title> tag without sending sevrel XHR requests, so I want to load an entire page to a jQuery object, and use it’s elements, so:
something along the line:
href = 'http://my-url.com/my-page.php';
dom = $();
dom.load(href);
text = dom.children("title").text();
I’m fiddling with this quite a while, and no success,
Thanks !
Like this: