loop through child elements jquery code example
Example: jquery loop through each child element
$('#mydiv').children('input').each(function () {
alert(this.value); // "this" is the current element in the loop
});
$('#mydiv').children('input').each(function () {
alert(this.value); // "this" is the current element in the loop
});