Of course you can do it.
I can think of several ways. One of them is to create a variable that stores list items in an array. When you interact with list items in the user interface, you can also update the array.
After pressing the SUBMIT button, insert the array into the hidden INPUT to send back to the server.
However ... if things are created / hidden on the fly in the user interface, a person can expect him to update the server in real time via AJAX. Therefore, make sure your user interface design clearly shows that it will not be updated. If the user does not complete the SAVE action.
As for the framework, defacto's answer would be jQuery.
source share