I'm wondering if maybe this code doesn't work because you can't return a JQuery object from a function. This code doesn't work:
var HTML_FILE_URL = '/Solutions1.htm';
var strAll = $.get(HTML_FILE_URL, function (data) {
var fileDom = $(data);
return fileDom;
});
$("#qapagediv").append(strAll.html());
However, this code does work:
var strAll = $.get(HTML_FILE_URL, function (data) {
var fileDom = $(data);
$("#qapagediv").append(fileDom);
return fileDom;
});
.done()method of Deferred Objects.