var arr1 = [ "aaa", "bbb", "ccc" ]; $.each(arr1, function(i,val){ alert(i); alert(val);});
var obj = { one:1, two:2, three:3}; $.each(obj, function(key, val) { alert(key); alert(val); });
$.each($("input:hidden"), function(i,val){ alert(val);alert(i);alert(val.name);alert(val.value); });