I rarely use collections so this is not familiar at all. It seems simple but I think that is the trap. Perhaps, it should be simple is a better way to say it.
I've created a very simple form to experiment with. I enter an ID number at the top of the form and a lookup retrieves the children of the person whos ID was entered. Each group in the collection represents a single child. The collection will never change after the initial lookup.
There are three objects in the group:
- a textbox with the ID of the child id = q5
-a dropdown box id = q7, class = termDrop
- a textbox where I would like to store the value of what was chosen in the dropdown. id = q8, class = termBox
Here is an example of what the form looks like:
The behavior I would like is when a term is selected from the dropdown, it is entered into the Term Selected field. So the Term Selected for Dependent ID would be 2023FA, for Dependent ID 1221339 it would be 2024SP, for Dependent ID 1288149 it would be 2023WI.
What does the javascript/jquery look like to populate those fields?
Thanks...