Why aren't my dynamically-added form inputs posting?
<p>I'm working on a form where I need to dynamically add inputs whenever the user clicks a "more widgets" button. There's a hidden div inside the form, and I append the inputs to it with jQuery, like this:</p>

<pre><code>$('div#newwidgetinputs').show().append(newInputs);
</code></pre>

<p>They show up, are properly named, etc, but when I post the form, their contents are not in the PHP <code>$_POST</code> array.</p>

<p>So I tried just appending them to the form itself:</p>

<pre><code>$('form#someform').append(newInputs);
</code></pre>

<p>They can't be seen on the page, but I give them default values, and this time they <strong>do</strong> appear in '$_POST'.</p>

<p>This makes me think that <code>div#newwidgetinputs</code> isn't considered part of the form, but I don't see why; it's between the opening and closing <code>&lt;form&gt;</code> tags.</p>

<p>Why wouldn't those inputs post?</p>
