What is the javascript equivalent for
$('#srcSelectorId').appendTo('#destSelectorId');
What is the javascript equivalent for
$('#srcSelectorId').appendTo('#destSelectorId');
javascript dom equivalent for jquery appendTo is as the following lines of code:
srcEl = document.getElementById('srcSelectorId');
destEl = document.getElementById('destSelectorId');
destEl.appendChild(srcEl);