wondering how to get the values from a multi-dimensional array? This is what I have so far:
<script type="text/javascript">
var concertArray = [
["Billy Joel", "99", "equal.png"],
["Bryan Adams", "89", "higher.png"],
["Brian Adams", "25", "lower.png"]
];
function populate(){
for(i=0;i<concertArray.length;i++){
var select = document.getElementById("test");
select.options[select.options.length] = new Option(concertArray[i][0], concertArray[i][1]);
}
}
</script>
Now, does anyone know how to get the value of 99 and the image when I select the first option in the array, "Billy Joel"?