What I am doing is as follow:
I have two selection boxes "A" and "B".
"A" is populated by a DB.
Now the user wil select a option (Name of a person) in "A".
The Second selection box "B" is then populated by the selections made in "A"
Now the user has selected the team (From "A" to "B") and wants to submit it.
On the form there is a buttun with a onClick event, this will then call the function thaat will select all the options in "B" and submit it.
Hope this awnsers the q.