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
What about this, for example when you want to add a element inside a
$('') .val(optionVal) .text('some option') .appendTo('#mySelect')
You can obviously apply to any element
$('') .css('border-color', red) .text('some text') .appendTo('#parentDiv')