I am creating a form. it has a field collection. it has a field age in field collection that can be filled unlimited times in single form. I want to add the total of those field values(age) in another single textfield(out of field collection). I don't know how to that as it has same class but always ask for input:ID which is different everytime.