You are creating the same ID multiple times in the DOM. Big no-no.
My advice is to avoid IDs altogether, they are just trouble and there's no reason to use them.