Thank you so much for the solution. I have tried your suggestions and created a new sample.
Please take a look at this JSFiddle. We can create as much new data lines by clicking the add button and removed all the added lines by clicking remove button.
But I’m getting the below error sometimes when I try to remove the lines. Not all the time I’m getting this error but sometimes I’m getting this. Any idea?