i have a <div> to which i d/l a table! each <tr> in the table recives an id! is there a way to delete a line from the table? if yes then how??? thanks in advance peleg
@AdamBrillAug 07.2003 — #Yes, it is possible. Take a look at this:<html> <head> <title>Untitled</title> <script type="text/javascript"> function delete_tr(event){ if(event.srcElement.tagName=="TD"){ event.srcElement.parentElement.parentElement.deleteRow(event.srcElement.parentElement.rowIndex); } } </script> </head> <body onclick="delete_tr(event);"> <table border=1> <tr> <td> test </td> <td> test </td> </tr> <tr> <td> test1 </td> <td> test1 </td> </tr> <tr> <td> test2 </td> <td> test2 </td> </tr> <tr> <td> test3 </td> <td> test3 </td> </tr> </table> </body> </html>When you click on a row, it will get deleted... If you need it modified and can't figure out how to do it, let me know what you want changed and I'd be happy to help. ?