I am not sure what I did wrong. I am trying to make the first column display in my dropdown box but I keep generating an error. Can anyone see what I did wrong?
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>
<script type="text/javascript">
var select = document.getElementById("complaintType");
var maps = new Array();
maps[0] = ["Text A1", "Text A2", "Text A3"];
maps[1] = ["Text B1", "Text B2", "Text B3"];
maps[2] = ["Text C1", "Text C2", "Text C3"];
maps[3] = ["Text D1", "Text D2", "Text D3"];
maps[4] = ["Text E1", "Text E2", "Text E3"];
maps[5] = ["Text F1", "Text F2", "Text F3"];
for(var i=0; i < maps.length; i++) {
var value = maps[i][0];
//document.write((value)+"<br>");
var option = document.createElement('option');
option.text = maps[i];
option.value = maps[i];
select.option[select.option.length] = option;
}
</script>
<body>
<select id="complaintType">
</select>
</body>
</html>