Click to See Complete Forum and Search --> : Check all/multile delete.


mili
04-10-2003, 02:00 PM
How can delete multiple or all rows from this table at once.Right now, I can delete only one row at a time.
I've attached my code below.

Thanks

khalidali63
04-10-2003, 03:21 PM
Take a look at this link

http://68.145.35.86/skills/javascripts/DOMTableManipulation.html

Cheers

Khalid

mili
04-10-2003, 04:08 PM
Thanks khalid.I looked at that site.But I have a slightly different requirement though.
I want to be able to delete all and also delete a particular row by checking a box.
Remove function in this site just starts eliminating rows from last.
Do you know how I can do this?

Thanks,

khalidali63
04-10-2003, 05:17 PM
yes,you can add a text field.
Get the value from the text field
The rest of the code is already in place
Just take a look at it and in the code where I delete all rows match the user entered index value with that of the loop index going through ll of the rows and which ever matches remove that.couple of minutes worth code writing.

Cheers

Khalid