I'm refactoring a few old javascript code and there may be lots of DOM manipulation happening.
var d = document;
var odv = d.createElement("div");
odv.style.display = "none";
this.OuterDiv = odv;
var t = d.createElement("table");
t.cellSpacing = 0;
t.className = "text";
odv.appendChild(t);
I would really like to know if there may be a better manner to do that the use of jquery. I have been experimenting with:
var odv = $.create("div");
$.append(odv);
// And many more
However, I don't know whether this is any better.