posted 3 years ago
How to dynamically add/remove rows from a list|table with thymeleaf?
In the code above, I have a list of contacts. I also have two buttons: one add a new row with new data and the other button remove rows. How should these two be coded?
I have a current code that works however its a mess of javascript. Is there a cleaner way of doing it?
To add a row, I do this:
To remove a row, I do this: