[Cookbook] adding a problem to add dynamic input elements on the page to add a row to a table or a new item in a list