Maintain id/name of original element

Maintain the id and name of the original element in the new element created to store the selected values. This makes it easier to retrieve the values server side.