View Single Post
Old 10-06-2012, 06:46 PM   PM User | #3
AndrewGSW
Senior Coder

 
Join Date: Apr 2011
Location: London, England
Posts: 2,120
Thanks: 15
Thanked 354 Times in 353 Posts
AndrewGSW will become famous soon enough
Code:
function deleteRow(id){  
document.getElementById("tableborder3").deleteRow(id);  
}
I assume id as a row-index-number and not actually an id-number? But your functions is named deleteRow() which over-writes the DOM deleteRow() method. So your function just calls itself recursively without deleting anything.

Change the name of your function to something other than deleteRow() and (I recommend for clarity) rename the parameter to perhaps ind, or index.

xelawho is shadowing me, or me him
__________________
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Validate your HTML and CSS
AndrewGSW is offline   Reply With Quote