how to assign value to multidimensional array in javascript and how to find value.
i tried
MultiArray = new Array(5);
MultiArray[0, 0] = "Total Task"
MultiArray[0, 1] = TotalTask
MultiArray[1, 0] = "Completed"
MultiArray[1, 1] = Completed_Task
MultiArray[2, 0] = "Rejected"
alert(MultiArray[0, 0]);
MultiArray[2, 1] = Rejected
MultiArray[3, 0] = "Pending"
MultiArray[3, 1] = Pending;
MultiArray[4, 0] = "Uncomplete"
MultiArray[4, 1] = uncomplete
when anywhere i try to find value, it always shows last value.
on alert of [0,0] it showed rejected