for (var i = 0; i < array.length; i++){ if (array[i].id == FINDID){ console.log ("this is " + (i + 1) + " element"); break } }