Hello, I'm trying to recreate the following code with jQuery:
var node = document.createElement("div");
node.innerHTML = "DynaColumn";
node.className = "ui-state-default ui-corner-all";
return node;
this is the code I'm trying to get to work:
return $("<div class='ui-state-default ui-corner-all'>DynaColumn</div>");
The first seems to work fine. I'm not sure why the second isn't working:
The object that will be using this return value is calling it as so:
something.appendChild(theNode);