Mike Alsup ha scritto:
There's a ton of them. after, before, insertAfter, insertBefore,
append, prepend, etc
http://docs.jquery.com/Manipulation
Ex: $('#myElementToMove').insertAfter('#myDestinationDiv');
Ups... I was using these metodhs to inject new DOM elements, but I never
tought
Giovanni Battista Lenoci ha scritto:
Put your nested form after the parent form, and hide it. Keep the
upload-elements in the parent form and move them to the upload-form on
submit (using a different submit button). Clone/move back to the
parent form after the submit for more files.
I was tinking that maybe moving the input element could works, but I'm
looking in the doc and I cant find a method for moving a DOM element.
There's a ton of them. after, before, insertAfter, insertBefore,
append, prepend, etc
http://docs.jquery.com/Manipulation
Ex:
I don't have a drop-in solution, just an idea to start with:
Put your nested form after the parent form, and hide it. Keep the
upload-elements in the parent form and move them to the upload-form on
submit (using a different submit button). Clone/move back to the
parent form after the submit for
Put your nested form after the parent form, and hide it. Keep the
upload-elements in the parent form and move them to the upload-form on
submit (using a different submit button). Clone/move back to the
parent form after the submit for more files.
Thank you for your answer Jörn, It works :-)
5 matches
Mail list logo