I'm creating an integer array like that
my_array = new array(60);
for(var i=0;i<6;i++){
for(var j=0;j<10;j++){
my_array[(i*10)+j] = (i.toString())+"."+(j.toString());
}
}
this should result in an array with
my_array[0] = 0.0
...
my_array[59] = 5.9
Now I want to use that list for an autocomplete
$( "#my_id" ).autocomplete({
source: my_array
});
It does not work, though. Any ideas why?
my_array = [];instead ofmy_array = new array(60);array is not definederror... I'm such a fool. Just noticed that it should benew Array(100)instead ofnew array(100). Thus writing Array with the big A.