you can use the each
function:
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
More Related Contents:
- Pass array to ajax request in $.ajax() [duplicate]
- How to remove specific value from array using jQuery
- how to store an array in jquery cookie?
- How to send request parameter array to servlet using jQuery $.ajax?
- What makes a jQuery object show up as an array in Chrome’s Developer Tools?
- jQuery parse JSON multidimensional array
- jquery array group by
- Rails not decoding JSON from jQuery correctly (array becoming a hash with integer keys)
- AJAX Post of JavaScript String Array to JsonResult as List Always Returns Null?
- jQuery .inArray() always true?
- Store and use an array using the HTML data tag and jQuery
- Any way to make jQuery.inArray() case insensitive?
- jQuery how to find an element based on a data-attribute value?
- How to find if an array contains a specific string in JavaScript/jQuery?
- $(window).width() not the same as media query
- Replace keys in an array based on another lookup/mapping array
- How do I check/uncheck all checkboxes with a button using jQuery?
- parse html string with jquery
- Detect middle button click (scroll button) with jQuery
- Dynamically adding collapsible elements
- How to set selected value on select using selectpicker plugin from bootstrap
- How do I get the HTTP status code with jQuery?
- Reload table data in Django without refreshing the page
- Jquery: Find Text and replace
- Get *all* CSS attributes with jQuery
- jQuery behaving strange after page refresh (F5) in Chrome
- jquery nested ajax calls formatting
- jquery click doesn’t work on hyperlink
- change the href of a css link via jquery
- Jquery .on(‘scroll’) not firing the event while scrolling