Registering a dynamically created form

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.

You can find the jsfiddle here -->   http://jsfiddle.net/skyros/ZFE7x/

What it does:

  1. HTML is loaded in dynamically using .load();
  2. User selects an image and the form is automatically submitted
  3. Form data is converted to JSON
  4. JSON data is passed to PHP for processing via AJAX
  5. Successful submission returns a message to user (this happens regardless of success when using jsfiddle)