This is particularly basic, I'm a beginner and have recently gotten help from a very kind and sincere man that has gotten me to where I am now.
I want to give the user a choice to either select one of the options provided or insert their own information.
Heres what I've got so far:
<div class=naviselection>
Start:
<select id='start' onchange="updateNavigationLink()">
<option value="The International School of The Hague, Wijndaelerduin 1, 2554 BX Den Haag">School</option>
<option value="Centrum, Den Haag">City Center</option>
</select> End:
<select id='end' onchange="updateNavigationLink()">
<option value="The International School of The Hague, Wijndaelerduin 1, 2554 BX Den Haag">School</option>
<option value="Centrum, Den Haag">City Center</option>
</select>
</div>
<div class=Finallink>
<span id="navigationLink"></span>
Now, I'm trying to allow the user to put in their own text (corresponding to an address) and have that be one of the options.
Im thinking of having the text box appear once an option is clicked but I don't know how to define the value, I suppose it would be the result of some JavaScript…
<option value=undefined>Your Location</option>
So what would the JavaScript be, how would I make the value of the option above what my user types in.
If anyone can help it would be very much appreciated, I've just only begun with javascript about a week ago and know the very basics but I'm learning...