Friday, June 8, 2012

stringify using jquery

often we need to check data inside an object,map,array. We can use following code to convert them
into string.
 
$.each(haystack, function(key, value) { 
  alert(key + '=> ' + value); 
});
where haystack can be array,object,map etc.

1 comment:

PHP Developer chicago said...

Hey!
I'm truly enjoying the design and layout of your site. It's a very easy on the eyes which makes it much more enjoyable for me to come here and visit more often. Did you hire out a developer to create your theme? Outstanding work!


Vachel
PHP Developer Chicago
cmscentral.net