Trying to generate a quiz app. My sample data
pre
[
{
"id":"53620e12e4b058d902d3f58b",
"question":"How was your experience today?, Very good, Good, Average, Poor, Very poor",
"createdAt":"2014-05-01 09:04:18.125",
"updatedAt":"2014-05-01 09:04:18.125"
},
{
"id":"53620e2de4b058d902d3f58c",
"question":"How do you rate your service?, Great, OK, Terrible",
"createdAt":"2014-05-01 09:04:45.164",
"updatedAt":"2014-05-01 09:04:45.164"
}
]
/pre
I think what I want is on an event like button click to run a back end query in javascript to return the first question and answer stubs, and then slot those responses into the UI elements.
Completely befuddled as to how to even make a start. A quiz example would be a great addition.