I am retrieving HTML from a remote host with the following jQuery code
var loadUrl = \"URL.html\"; $(\"#result\") .html(ajax_load) .load(
If I understand your question correctly, you need to create the
elements inside your loop:
$("#load_get").click(function() {
var xml = "";
$("#result tr").each(function() {
var cells = $("td", this);
if (cells.length > 0) {
xml += "\n";
for (var i = 1; i < cells.length; ++i) {
xml += "\t" + cells.eq(i).text() + "\n";
}
xml += " \n";
}
});
window.alert(xml);
});