Extract dynamically created form data
<p>I've just started using jQuery. One thing I've been using it for is adding rows to a table that is part of a form.</p>

<p>When I add a new row, I give all the form elements names like <code>'name_' + rowNumber</code>. I increment <code>rowNumber</code> each time I add a row.</p>

<p>I also usually have a Remove Row Button. Even when a row is removed, the <code>rowNumber</code> count stays the same to keep from repeating element names.</p>

<p>When the form is submitted, I set a hidden element to equal the <code>rowNumber</code> value from jQuery. Then in PHP, I count from 1 to the <code>rowNumber</code> value. Then for each value, I perform an <code>isset($_REQUEST['name'_ . index])</code>. This is how I extract the form elements that remained after deleting rows in jQuery.</p>

<p>Does anyone here have a better technique for accounting for deleted rows?</p>
