Monday, December 7, 2009

Remove all DOM table rows/content using JavaScript

  
var Parent = document.getElementById(tableID);
while(Parent.hasChildNodes())
{
Parent.removeChild(Parent.firstChild);
}

IPL Players - Where are they from?