0

maybe getting a brain freeze there but i cannot get this to work. any help would be appreciated. thanks

var prlist = loadList(rootUrl + '?action=product&country_id=' + userSelCountry);

response from PHP : [{"id":"-1","text":"no results found"}]

I have tried the following with no success

console.log(prlist) //  [Object { id="-1",  text="no results found"}]
console.log(prlist.id);//undefined
console.log(prlist['id'] // undefined

I need to retrieve the id value.

thanks

boulepick
  • 69
  • 2
  • 10

0 Answers0