I see various ways to update a input field from a select box but how would I go about updating a select box based on the value of an input text field?
Input Text:
<input type="text" id="region-txt" name="region-txt" />
Select Box to be updated based on the input text value:
<select id="region" name="region">
<option value="1">Test1</option>
<option value="2">Test2</option>
</select>
Basically, I want the select box to be updated with the value of the input text field. Using jQuery so that would be ideal.
if you want to change the selected dropdown vale you can use
if you want to add a new option to list you can use
also can do for
changeevent