Javascript examples for jQuery:Array
$.each for object array in jquery
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://code.jquery.com/jquery-1.11.0.js"></script> <script type="text/javascript"> $(window).load(function(){// ww w . j a va 2 s . c o m var person = {}; person["firstName"] = "John"; person["lastName"] = "Doe"; person["age"] = 46; jQuery.each(person, function(index, item) { console.log(index + " : " + item); }); }); </script> </head> <body> </body> </html>