Its syntax is:
This index starts from 0 and is relative to the logical order of all the rows contained inside the table. If the index is -1 the last row of the table is deleted.
Here is the code:
<table id="table" border="1">
<input type="button" onclick="deleteRow()" value="Delete Row">
Output will be displayed as:
On clicking the button, the row at the index 1 will be deleted.
Now if you click the button again, the row comes at the index 1 will be deleted.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.