javascript each collect value in object code example
Example 1: jquery foreach
$.each( obj, function( key, value ) {
alert( key + ": " + value );
});
Example 2: jquery each array object
$.each(largeJSONobject.ReleatedDoc, function (index,value) {
$('select.mrdDisplayBox').addOption(value.Id, value.Id + ' - ' + value.Number, false);
});
Example 3: $.each( function(key value){$get()}
$.each( function(key value){$get()}