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
It's all pretty straight forward! Heres a couple quick examples...
var $example = $( XMLDocRoot );
var $element = $( $example[0].createElement('tag') ); // Note the [0], which is the root $element.attr({ id: '1', hello: 'world' });
var $example.find('parent > child').append( $element );