dynamic lists of items

dynamic lists of items

I have 3 textboxes and three delete buttons next to each textbox.  On clicking a delete button,it must remove the textbox it is associated with and the the delete button clicked also has to be removed,  The textboxes and buttons that are after the removed textbox and buttons moves up and fills the blank space. 
 
How can I do that?