Hi,
there is a function "getTable(datas)", it will return a HTML element like "$("<table><tr><td>data1</td><td>data2</td></tr></table>");
now I write a function, wanna get html tree like "<table>...</table><table>...</table>":
-
getHtml = function(sourcelist){
h = $();
for (s in sourcelist){
h.add($.getTable(sourcelist[s]));
}
return h;
}
it seems not to work, How to implement in the right way?
thanks in advanced.