• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Delete a dynamically added row from table

 
Pradeep Adibatla
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have 3 different functions to remove a row(dynaically added) from a table.

I have a delete button which is suppose to delete the row.I select a row and say delete and onClick I call a function

These are the three functions viz...












Should there be any changes?

The first 2 are from internet,3rd one is mine!
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
deleteRow(this);

Eric
 
Pradeep Adibatla
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eric,I have tried that but somehow it's not deleting !!! what else could be in reckoning for change?

whew,it's not entering the onclick function!
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wowzers, I did not see this line this morning

document.all('vocab').

NEVER NEVER NEVER use document.all

If it is not getting into the onclick, are you in your loop? Also look at your deleteRows function and how you are calling it. You will see they do not mesh.

Eric
 
Pradeep Adibatla
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which function is looking stable? The loop I was referring to was for function3.yeah, the calling and rest is fine...no idea where the change is...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic