title: Plus/minus incrementator in Jquery, how to generalize?
body: <p>I'm using this code</p>
  
  <pre><code>&lt;a id="minus" href="#"&gt;-&lt;/a&gt;
     &lt;span id="VALUE"&gt;0&lt;/span&gt;
  &lt;a id="plus" href="#"&gt;+&lt;/a&gt;
  </code></pre>
  
  <p>Javascript:</p>
  
  <pre><code>$(function(){
  
      var valueElement = $('#VALUE');
      function incrementValue(e){
          valueElement.text(Math.max(parseInt(valueElement.text()) + e.data.increment, 0));
          return false;
      }
  
      $('#plus').bind('click', {increment: 1}, incrementValue);
  
      $('#minus').bind('click', {increment: -1}, incrementValue);
  
  });
  </code></pre>
  
  <p>to have a plus/minus incrementator of the filed named "VALUE".
  Now, i have a form using this containing 150 field like this... there's a way to generalize this code passing in some way to the function the name of the field that the user is incrementing/decrementing?
  Otherwise, i have to replicate this code 150 times...</p>