title: Storing Values in an Array from Textbox in Javascript
body: <p>I've been trying to experiment in a way in which i can store values entered from a textbox into an array.(using JavaScript or JQuery)</p>
  
  <p>I understand I can do it this way:</p>
  
  <p><code>
      var array = [];
      var input = document.getElementById('input_id').value;
      array.push(input);
  </code></p>
  
  <p>But the functionality that I want to achieve is to be able to give the user an option to choose which array they want to save their input to.</p>
  
  <p>Summary:</p>
  
  <ul>
  <li>How can a user choose which array to store the input text to</li>
  </ul>