I have a page that has a 2 list boxes and a combo box. The first list box is populated from a database with all the names of our associates. The other list box is empty as is the combo box. Here are the identifiers for each item:
List box #1
Available Users
List box #2
Selected users
Combo box #1
Manager
What happens is that I have a javascript coding that will allow a user to dynamically fill list box #2 and combo box #1 with the users selected in list box #1 after they hit the add >> button. Additionally it will remove those names from list box #1. However, I also have checks in place after submitting the form to make sure the user is entering in the right data. When the user does not input in something correctly, the values for all the list/combo boxes revert back to its original state. Is there any way I can keep the values that were selected for each object? Additionally, How do you then pull these values after they are populated so I can insert them into my database? Any help would be greatly appreciated. Thank you.
List box #1
Available Users
List box #2
Selected users
Combo box #1
Manager
What happens is that I have a javascript coding that will allow a user to dynamically fill list box #2 and combo box #1 with the users selected in list box #1 after they hit the add >> button. Additionally it will remove those names from list box #1. However, I also have checks in place after submitting the form to make sure the user is entering in the right data. When the user does not input in something correctly, the values for all the list/combo boxes revert back to its original state. Is there any way I can keep the values that were selected for each object? Additionally, How do you then pull these values after they are populated so I can insert them into my database? Any help would be greatly appreciated. Thank you.