JQVMap.prototype.getPins = function(){ var pins = this.container.find('.jqvmap-pin'); var ret = {}; jQuery.each(pins, function(index, pinObj){ pinObj = jQuery(pinObj); var cc = pinObj.attr('for').toLowerCase(); var pinContent = pinObj.html(); ret[cc] = pinContent; }); return JSON.stringify(ret); };
info at phpclasses dot org