Login | Register | FAQ
Anonymous

How to read value from select list in input?

+ Post a reply

2 posts Page 1 of 1


How to read value from select list in input?

by nael » Fri May 04, 2018 9:40 pm

Hi,
I have this input code
<input id="SFCountry" name="SFCountry" type="text" value="">

And I have a list of countries with values such as:
<select>
<option value="US">Unites States</option>
<option value="CA">Canada</option>
<option value="AL">Albania</option>
</select>

I want the value of the input to be the value of the option I select from the drop down menu, how do I do that?

Thank you,
User avatar

nael

  • Posts: 1
  • Joined: Fri May 04, 2018 9:34 pm

Re: How to read value from select list in input?

by linedlir » Fri May 25, 2018 7:21 pm

How to read value from select http://www.linedl.ir/؟
User avatar

linedlir

  • Posts: 1
  • Joined: Fri May 25, 2018 7:16 pm
  • Location: http://www.linedl.ir/


+ Post a reply

Page 1 of 1