Issue with reloading form after submission to DB: PHP, JQuery---leaves jquery dynamically created elements behind
<p>This is hard for me to explain soooo I am going to explain more than sharing code. </p>

<p>I have a form in a div </p>

<p>When the form is submitted...on success...a function is called that empties the ajaxContent and then reloads the form. </p>

<p>The issue seems to be that jquery leaves some DOM elements outside this div. These elements are causing issues with the newly loaded form. </p>

<p>I am lost on how to remove/reload all of these elements. I CAN'T reload the page for many reasons. </p>

<p>Please see the pictures below. They might help explain the topic.
<img src="http://i.stack.imgur.com/5GUNo.png" alt="enter image description here"></p>

<p><img src="http://i.stack.imgur.com/bJN5R.png" alt="enter image description here"></p>
