function clearElement(e)
{
	while(e.firstChild)
		e.firstChild.remove();
}
// remove all child nodes of e

remove all child nodes of e
remove all child nodes of e
function clearElement(e)
{
	while(e.firstChild)
		e.firstChild.remove();
}
function clearElement ( e ) { while ( e . firstChild ) e . firstChild . remove ( ) ; }
remove all child nodes of e
remove all child nodes of e