Registering a dynamically created form
Hi everyone, I'm having problems submitting data from my dynamically created form. I believe the problem lies in hows it is being registered. It is submitting the form but not passing any data into my ajax call which is causing the PHP to fail.
I use this in other places within my website and it works, but not when the form is created dynamically.
What it does:
- HTML is loaded in dynamically using .load();
- User selects an image and the form is automatically submitted
- Form data is converted to JSON
- JSON data is passed to PHP for processing via AJAX
- Successful submission returns a message to user (this happens regardless of success when using jsfiddle)