Hi, I am a beginner here.
I was not knowing how to assign the value of a Dropdown menu to a Hidden type variable.
Code:
------------------------------------------------------------------------------------
[CODE=html]<form name=form1 onsubmit="test( )">
<select name=car>
<option value ="volvo">Vol vo</option>
<option value ="saab">Saab </option>
<option value ="opel">Opel </option>
<option value ="audi">Audi </option>
</select>
<input type=hidden name=hidden_car value="******** **">
<INPUT TYPE=SUBMIT VALUE=ENTER>[/CODE]
--------------------------------------------------------------------------------------
now, i want the hidden variable 'hidden_car" TO have the value that is selected from the dropdown menu before the SUBMIT button is hit.
in the above example, im not sure what shud be entered in place of ******** for the hidden variable.
Any help is appreciated.
Thank You
I was not knowing how to assign the value of a Dropdown menu to a Hidden type variable.
Code:
------------------------------------------------------------------------------------
[CODE=html]<form name=form1 onsubmit="test( )">
<select name=car>
<option value ="volvo">Vol vo</option>
<option value ="saab">Saab </option>
<option value ="opel">Opel </option>
<option value ="audi">Audi </option>
</select>
<input type=hidden name=hidden_car value="******** **">
<INPUT TYPE=SUBMIT VALUE=ENTER>[/CODE]
--------------------------------------------------------------------------------------
now, i want the hidden variable 'hidden_car" TO have the value that is selected from the dropdown menu before the SUBMIT button is hit.
in the above example, im not sure what shud be entered in place of ******** for the hidden variable.
Any help is appreciated.
Thank You
Comment