I have
insert.php
verify.php
in Insert.php I have a form with some fields and some other fields which are generated by ajax calls based on selections. I also have an image uploader where the image is uploaded to the server as soon as the user chooses the image. The preview of the image is then showed when upload is done. When the form is submitted, it sends form.serialize to verify.php.
In verify.php the user sees and verifies the data from insert.php form.
If user thinks that everything is correct then he can submit it. or click on the “Edit” button to go back. When going back some of the info are not available. fields that are generated through ajax are not available.
Anyway to fix it ?
I add element to insert.php using
$('#subcategoryPlaceHolder').html(result);
I ended up using two divs.
using jquery I hid the one I didnt need and the form data was there all the time.