Monday, December 7, 2009

Remove all DOM table rows/content using JavaScript

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

No comments:

Post a Comment

IPL Players - Where are they from?