The Array values can be accessed using the index of each element in an Array. Maybe you can include a few … Multidimensional array is just an array of arrays means an array containing array as its elements. Return value: This method will return a JavaScript string or object, number, an Array, or a Boolean value. Hi, "element" is the value found in the array at the "index" position. You can convert the PHP array in JSON format with json_encode() function and return as a response. Source: api.jquery.com. edit close. play_arrow. Array An array is an ordered collection of values. So try element.classRoom or data[index].classRoom rather than element[index] or data[element] Lets say the json … I do a lot of work with jQuery these days (and am about to start working with MooTools on a new project, so am bound to start posting about MooTools shortly so in this post look at how to do the same but using jQuery’s each function. Accessing JSON elements with jQuery. Take a look at the following script: