Using below simple code, you can read Key & value from Java script array or object
var foo = { 'alpha' : 'puffin', 'beta' : 'beagle' },
keys = $.map(foo, function(v, i){
  return i;
});
 
No comments:
Post a Comment