Jay59express
Senior member
Hi,
I have two <select> menus that get populated by information from a file by php. They both contain the same elements. The second menu is hidden in a layer and gets shown when the user clicks a radio button. What I would like to be able to do is have the second menu have the option that is selected in the first menu be selected. So I guess the basic question is whether or not it is possible to have the selected value in a <select> menu be changed without having to repopulate it.
some variables:
<form name = publishForm>
<select name = tech...> 1st menu
<select multiple name = data_techs[] (this is technically a select multiple, but I just want to set one value, namely the one that matches tech)
I have two <select> menus that get populated by information from a file by php. They both contain the same elements. The second menu is hidden in a layer and gets shown when the user clicks a radio button. What I would like to be able to do is have the second menu have the option that is selected in the first menu be selected. So I guess the basic question is whether or not it is possible to have the selected value in a <select> menu be changed without having to repopulate it.
some variables:
<form name = publishForm>
<select name = tech...> 1st menu
<select multiple name = data_techs[] (this is technically a select multiple, but I just want to set one value, namely the one that matches tech)