THIS CODE IS NOT WORKING, PLEASE HELP !!!
ArrayIndexOutOfBoundException is thrown by compiler, Please HELP !!!
for(var i=1;i<='<%=count%>';+++)
{
var x = document.getElementById("person");
var opt = document.createElement("option");
opt.text = '<%=list[i]%>'; <------------------ ERROR IS AT THIS LINE
opt.value = '<%=list[i]%>';
x.add(opt);
}
}