Selecting the correct input field using jquery
<p>I'm trying to select the id's of dynamic input fields in my code. When clicking a button, the form will create a form field like this:</p>

<pre><code>&lt;td&gt;&lt;input type="text" id="field_a_1"&gt;&lt;/td&gt;
&lt;td&gt;&lt;input type="text" id="field_b_1"&gt;&lt;/td&gt;
&lt;td&gt;&lt;input type="text" id="field_c_1"&gt;&lt;/td&gt;
</code></pre>

<p>When I click on the button again I get this:</p>

<pre><code>&lt;td&gt;&lt;input type="text" id="field_a_2"&gt;&lt;/td&gt;
&lt;td&gt;&lt;input type="text" id="field_b_2"&gt;&lt;/td&gt;
&lt;td&gt;&lt;input type="text" id="field_c_2"&gt;&lt;/td&gt;
</code></pre>

<p>What I want to do is select only the field id that I need to pull the value from that particular input and pass it to a variable like this:</p>

<pre><code>var example = $(":input:eq(0)").val();
</code></pre>

<p>I know that by adding the <code>:eq(0)</code> after the <code>:input</code> selector it will only grab the id for <code>field_a_1</code>, so how do I set it up so that I can pull just the field that I need to assign it to a variable?</p>
