Will you only ever have two rows, or might there be more?
If more (or, really, in any case) it will be helpful if you enclose each row in some element (e.g. just a <div> is fine). If you do that, then it's possible to get by without any IDs at all. (When I see e.g. price1, price2, etc.. for IDs, I see trouble!)
Here is one way. You can have as many rows as you want:
IDs must be unique within the document. Use a class if you want to share an identifier amongst several elements - you would then select them all by using a dot before the class name (e.g. .quantity). It would probably help to group each row into its own div. You don't have any code yet - have a go first.
Leave a comment on kbwood.au's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic