I am pulling data from a database in javascript using mysqljs
I can get the output:
{
"Success": true,
"Result": [{
"buttonName": "90p"
}, {
"buttonName": "£1.90"
}, {
"buttonName": "£4.90"
}]
}
Using:
document.getElementById("output").innerHTML = JSON.stringify(data);
However, how do I access each part of the array.
I have tried:
data[1].buttonName
Any help would be much appreciated.