Good afternoon. I have an array with some keys, and values in them. I then need to fetch the array keys and not the data in them. I want to do this with jQuery. I know for e
you can use the each function:
each
var a = {}; a['alfa'] = 0; a['beta'] = 1; $.each(a, function(key, value) { alert(key) });
it has several nice shortcuts/tricks: check the gory details here