Javascript : array.length returns undefined
I have a set of data that is being passed on by the PHP’s json_encode function. I’m using the jQuery getJSON function to decode it: The output looks like this in the console: I can access each array by using data[1], data[2] etc, but to make it easier I thought of looping thought it so … Read more