Tuesday, October 22, 2013

loop through an array in JavaScript

myArray.forEach(function(itemInMyArray) {
   alert(itemInMyArray.name);
});

No comments:

Post a Comment