change the value of a qantity field with jquery
<p>I have form with multiple qty fields,I'd like to add the qty but pressing the add button and subtract the qty by pressing minus button, I got it working for one but I can not make it work for multiple qty fields,I have 24 qty fields, any help would be appreciate it.</p>

<pre><code>     &lt;form&gt;
            &lt;input name="minus1" type="button" class="button" id="minus1" value=" - " /&gt;
            &lt;input name="textfield1" type="text" id="textfield1" size="2" maxlength="2" value="0" /&gt;
           &lt;input name="add1" type="button" class="button" id="add1" value=" + " /&gt;

           &lt;input name="minus2" type="button" class="button" id="minus2" value=" - " /&gt;
            &lt;input name="textfield2" type="text" id="textfield2" size="2" maxlength="2" value="0" /&gt;
           &lt;input name="add2" type="button" class="button" id="add2" value=" + " /&gt;

         ......
     &lt;/form&gt;

    $(function()
{

     $("#add1").click(function(){
     var newQty = +($("#textfield1").val()) + 1;
     $("#textfield1").val(newQty);
     });

     $("#minus1").click(function(){
     var newQty = +($("#textfield1").val()) - 1;
     if(newQty &lt; 0)newQty = 0;
     $("#textfield1").val(newQty);
     });


});
</code></pre>
