The .each() does not continue to iterate, it's the setInterval which logs every second. You need to clear the interval or wrap the each with setInterval.
setInterval(function () {
$j('.clue').each(function () {
var id = $j(this).attr('id');// or use this.id
console.log('id: ' + id);
});
}, 1000);
Edit: Also as @A. Wolff noted in the comments this will avoid setting multiple useless intervals, using only one