title: How can I bind quantity (input of type number) and item (input of type checkbox) in HTML?
body: <p>I have a list of dynamically generated items (in PHP) and I have to let the user to chose a quantity for each item, how can I bind (and distinguish) each input of type number to corresponding item?
  Each item has a code as attribute "value" and I could give names (attribute "name") like "numitems_".$itemcode to input tags of but I'm not sure this is a clean solution.</p>