$(function(){
/*
var arr1 = ["aaa","bbb","ccc"];
$.each(arr1,function(i,val){
alert(i);
alert(val);
});
*/
/*
var arr2 =[['a','aa','aaa'],['b','bb','bbb'],['c','cc','ccc']];
$.each(arr2,function(i,item){
alert(i);
alert(item);
});
*/
/*
var arr=[['a','aa','aaa'],['b','bb','bbb'],['c','cc','ccc']];
$.each(arr,function(i,item){
$.each(item,function(j,val){
alert(j);
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(i);
alert(val);
alert(val.name);
alert(val.value);
});
*/
$("input:hidden").each(function(i,val){
alert(i);
alert(val);
alert(val.name);
alert(val.value);
});
});
<input name="aaa" type="hidden" value="111" />
<input name="bbb" type="hidden" value="222" />
<input name="ccc" type="hidden" value="333" />
<input name="ddd" type="hidden" value="444"/>