How can I use jQuery to get the value of a field and another field and send to ajax?
<p>How can I do an Ajax called based on a user updating a number in a text box?</p>

<p>I have something like the following. I removed surrounding code to make it easier to follow. I'm showing here two rows of a much larger grid.</p>

<pre><code>           &lt;div class="rep_tr0"&gt;
                &lt;div class="rep_td0" id="2"&gt;0001&lt;/div&gt;            
                &lt;div class="rep_td0"&gt;&lt;input id="position_1" name="position_1" size="5" type="text" value="0" /&gt;&lt;/div&gt;                           
            &lt;/div&gt;
            &lt;div class="rep_tr0"&gt;
                &lt;div class="rep_td0" id="2"&gt;0002&lt;/div&gt;          
                &lt;div class="rep_td0"&gt;&lt;input id="position_2" name="position_2" size="5" type="text" value="0" /&gt;&lt;/div&gt;
            &lt;/div&gt;
</code></pre>

<p>What I need is when the user makes a change to one of the input fields named "position_x" then I need to </p>

<pre><code>- get the value of the input field marked with "position_x"
- get the value that is stored in the div with id="x" 
- make an ajax call passing the two parameters.
</code></pre>

<p>Note that x marks the row number. </p>
