var someObj = { foo: "bar"}; $.each(someObj, function(propName, propVal) { console.log(propName, propVal); });
$.map(mapArray, function(val, key) { alert("Value is :" + val); alert("key is :" + key); });