Forum Moderators: open
I have a div on the page. When the button is pressed it takes whatever html is in the div, adds the new field and writes it to the div. But the values of the new fields are not copied.
How to make this so I can add a field to a form without the content being lost?
outer HTML? nodes?
So values (of file-elements) remain, but anything with id's can't be used.
(So now I am struggling to read the array of images in PHP after submitting)
<input type="file" name="image[]" onchange="check_extension(this);" />