0

Javascript Serial Number Reset

I have a table to add rows and delete rows dynamically but i also need to have serial number for each rows in ascending order. The problem is while adding it is working properly but after deleting a row the number is not resetting properly....couldn't figure out whats wrong... any help is appreciated.. I have the link to the code as follows... https://code.sololearn.com/WjE9Z3VlLY6A

9th Jun 2020, 9:42 AM
Gopinath M
Gopinath M - avatar
3 Réponses
+ 5
This is my try on fixing your problem https://code.sololearn.com/W5MMvfnBexyu/?ref=app
9th Jun 2020, 10:23 AM
Raj Chhatrala
Raj Chhatrala - avatar
+ 1
You got to readjust serialNumber when delete a row
9th Jun 2020, 10:18 AM
Calviղ
Calviղ - avatar
0
Wow thank you so much...I spent a couple of hours figuring this out... thanks guys
9th Jun 2020, 10:37 AM
Gopinath M
Gopinath M - avatar