QUESTION
How can I populate myArray with one of the arrays listed and change it using the selected option of a dropdown list?
Using javascript or jQuery
<select id="ddl">
<option>arr1</option>
<option>arr2</option>
<option>arr3</option>
</select>
var arr1 = ['A', 'B', 'C'],
arr2 = ['1', '2', '3'],
arr3 = ['X', 'Y', 'Z'],
array = document.getElementById('ddl').value;
//...
myArray: array
PROBLEM
Currently ddl is just a string value and I need the selected value to be one of the javascript variables.