Sunday, August 2, 2009

Iterate over object attributes using JQuery

 var obj = {  
foo: "bar",
baz: "quux"
};
jQuery.each(obj, function(name, value) {
alert(name + ": " + value);
});


http://stackoverflow.com/questions/1096924/iterating-a-javascript-objects-properties-using-jquery

No comments: