I am having some trouble to load data from url with load method in jQuery into variable instead selector.
So my code is this:
$('#test').load('http://url #searchedID');
So this would load some string from url where html selector have id = searchedID e.g. "This is string" and then it would display this string into html selector where id = test.
My question is: How to load data in my case (from: #searchedID) instead into selector where id = test into variable. Something like this:
var loadHereData = load('url, #searchedID');
But this is not corect!
Realy thanks for any advice.
$.getas mentioned here stackoverflow.com/questions/9958282/…