Hi there,
I have a hidden input called (amount)
<input type='hidden' name='amount'>
and I have a select input called (amount_desc)
<select name='amount_desc'>
<option value='1'>1</option>
<option value='2'>2</option>
</select>
My aim is when an option of the select input is selected to set its value to the hidden input
So when the form is submitted, the hidden input have the selected option in the select input
Thanks in advance
I have a hidden input called (amount)
<input type='hidden' name='amount'>
and I have a select input called (amount_desc)
<select name='amount_desc'>
<option value='1'>1</option>
<option value='2'>2</option>
</select>
My aim is when an option of the select input is selected to set its value to the hidden input
So when the form is submitted, the hidden input have the selected option in the select input
Thanks in advance