<input type="text" name="quantity[]" class="input_01" style=" width:15px;" onkeypress="return isNumberKey(event)" id="quantity[]" />
Why are you using [font=monospace][][/font] array brackets to name the quantity? Is it because there can be multiple copies of this "quantity" field?
If the answer is "yes", then [font=monospace]id="quantity[]"[/font] won't work, because all id attributes within a document have to be unique. If you do need to refer to these fields individually (if Bonesnap's suggestion isn't enough for some reason) then you'll need to make sure their ids are unique (by using array indices, for example: [font=monospace]quantity[0][/font], [font=monospace]quantity[1][/font], [font=monospace]quantity[2][/font], ...).