APD Toronto
asked on
Duplicating DIVs and nested elements
Hi Experts,
When the user cclicks on a button, using jQuery, how can I duplicate an entire DIV with its elements?
For some elements, at design time I want to have
...and when duplicating, I would need the [index++] updated, so that it would be an nested array in my $_POST
Thank you
When the user cclicks on a button, using jQuery, how can I duplicate an entire DIV with its elements?
For some elements, at design time I want to have
<input type="file" id="fie[0]" name="file[0]">
...and when duplicating, I would need the [index++] updated, so that it would be an nested array in my $_POST
Thank you
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
so you can read every file using $_FILE with PHP, check this comment :
else, the following change the name attribute. use same logic for ID attribute if you really need it... Only the name is used to POST data to the server....
Open in new window