I am trying to display the items in an array with jQuery but it's just returning [object] [Object]. What am I doing wrong here?
There data is returned in this format:
Object
1:{gps: "0.000,0.000", street_name: "First Street", street_name_alt: "1st Street"}
2:{gps: "0.000,0.000", street_name: "Second Street", street_name_alt: "2nd Street"}
And I am trying to output it with:
$.each( data.street, function( key, val ) {
htm+='<ons-list-item id="'+key+'">';
htm+=' '+val;
htm+='</ons-list-item>';
});