<html> <head> <script type="text/javascript"> function removeRow(){ var oTable = document.getElementById('oTable'); oTable.removeChild(oTable.lastChild); } </script> </head> <body> <input type="button" onclick="removeRow();" value="remove"> <table border="1" id="oTable"> <tr id="r1"> </tr> <tr id="r2"> </tr> <tr id="r3"> </tr> </table> </body> </html>
i pytanie jak usunac ostatni wiersz z tej tabeli
bo kod ktory ujety jest w znaczniki </script> usuwa cala tabele a nie ostatni wiersz.
Dziekuje i pozdrawiam