Skip to content Skip to sidebar Skip to footer

Form To Iframe Submission - How Do You Reset The Form After File Upload?

I have a form that submits the results to an iframe. The submitted fields and file upload are handled by upload.php. Everything works as expected creating an ajax style result alth

Solution 1:

You can run the following JavaScript code inside the iframe right after the file has been successfully uploaded.

parent.document.getElementById("form1").reset();

Post a Comment for "Form To Iframe Submission - How Do You Reset The Form After File Upload?"