title: jQuery get the input value in an .each loop
body: <p>I am trying to get the input value in an each loop of a checkbox, i cant figure out how to get this to work, the value keeps outputting as the first checkbox value.</p>
  
  <pre><code>$('.custemb, input[name=cb], input[class=multadd]').live("click", function() {
  
      $('input[class=multadd]:checked').each(function(index) {
          val = index + 2;
          valu = $('input[class=multadd]:checked').val();
          multiz = multiz + '&amp;aid' + val + '=' + valu;
      });
  });
  </code></pre>
  
  <p>the problem is the output of the variable <code>valu</code> is the first checkbox of the overall each loop, not the current checkbox of the loop, i need the current value.</p>
  
  <p>Any ideas?</p>