Fetch html page content into a var
- by Cipher
Just a small question here, that how do we get fetch the html content via ajax into a variable that I could use later.
Right now, I have a button on the click of which, I fetch another html page simply through load method as follows:
$('#container').load('http://127.0.0.1/someUrl')
I want to get the content into a var instead that I could at a…