If a user enters a value(s) (via javascript prompt), and that value is stored in a changing array, is there a way to automatically update a select box in an HTML form with the value(s) that the user enters? I ask because I am fairly new to jquery and front-end design, and I'm not certain if this can be done after a page is loaded.
I appreciate the help from the two people who responded, and I would upvote both of your answers as helpful, but I do not have enough reputation yet.
To clarify my question a bit better, what I would like to see happen is a select box automatically filled with values, based on user prompts.
For example, if I have
var r = true;
while(r == true){
var path = window.prompt("Please enter path here");
//I would like to put <option>path</option> inside a selection box
var r = confirm("Enter another path?");
}
If this is not entirely possible, I understand, but that's why I asked the question in the first place.
EDIT:
Found a solution here How to add option to select list in jQuery