This question already has an answer here:
I need to create global two dimensional array in jquery or javascript
My function is like this
<script>
var globalArray[0] = new Array();
function createArray(){
alert(globalArray[0]);
}
</script>
<div><input type='button' value='save' onclick='createArray();'> </div>
On click of that button I am getting this error "globalArray[0] is undefined"
How can I create global dynamic multi dimensional array.
$.("#uname")
a typo? – VisioN Jun 4 '12 at 10:42uname
is undefined. Lack of details is causing more questions than answers – charlietfl Jun 4 '12 at 10:48