Right now I have the code:
$.get("test.php", function(($cars){
$cars = cars;
}, "json");
$(function(cars){
$.each(cars, function(i, startList){
if(iNLarr[i]){
iNLarr[i](startList.name);
}
});
});
Ok I'm assigning the $cars array to the cars variable. Basically $cars is an array of objects, each object is an associative array. I need to be able to work on the array so I assigned it to the variable first. The next function uses the information in cars and displays it in html elements. iNLarr is an array of functions each function changing a replacing name html elements with the name retrieved from the $cars array of objects.
Whenever I run the function I get something back like array.prototype.map is not a valid parameter. I am thinking that startList is a made up parameter that I was hoping would be assigned to the objects so I could retrieve each name, but I'm guessing that's not the case, can anyone help me.
I'm alos not sure I've defined the function properly.