I'm refactoring some old javascript and there's a lot of DOM manipulation going on.
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);
Is there a better way to do this using jQuery? I've been experimenting with:
var odv = $.create("div");
$.append(odv);
etc. But I'm not sure this is any better.
Google search gives me ambiguous answers on the subject. Clues?