I\'m refactoring some old JavaScript code and there\'s a lot of DOM manipulation going on.
var d = document; var odv = d.createElement(\"div\"); odv.style.di
I'm doing like that:
$('',{ text: 'Div text', class: 'className' }).appendTo('#parentDiv');