Many programmers might have the problem with form where multiple input lines should be possible for one field. Most of the time this is solved by using multiple text inputs which are arranged in a table. To give the visitor the ability to add another line, most of the forms are “submitted” but without runnig the saving algorithm. Afterwards the form is reloaded with an additional line.
But thankfully we are much further today. A solution with JavaScript was even possible in the past, but with the use of modern JavaScript frameworks like Prototype the whole problem can be solved with a single line of code:
