$('#mydiv').children('input').each(function () { alert(this.value); // "this" is the current element in the loop });