You did not provide enough information to help you, because you only show one case of the
id
attribute in all your code. I cannot see the elements with the attribute values "productName", "productDescription" and all other. So, what can help you?
- You need to make sure that the
id
attribute values should be unique in the Web page. If you say that you use the same id's for the text boxes, those text boxes could be reused, but you cannot have different text boxes with the same id
. If you break the uniqueness, the results could be unpredictable. - One convenient way of using
id
would be jQuery ID selector: http://api.jquery.com/id-selector/[^].
There are many other convenient jQuery features you can benefit from.
—SA