Is there a jQuery way to perform iteration over an object's members, such as in:
for (var member in obj) {
...
}
I just don't like this for
sticking out from amongst my lovely jQuery notation!
Is there a jQuery way to perform iteration over an object's members, such as in:
for (var member in obj) {
...
}
I just don't like this for
sticking out from amongst my lovely jQuery notation!
$.each( { name: "John", lang: "JS" }, function(i, n){
alert( "Name: " + i + ", Value: " + n );
});