I’m running a quiz using SlickQuiz, I’m amending the .js file and instead of showing the question through text I want to call an image in. here is the code:
{
"q": "This is the question area where I'd prefer to call an image?",
"a": [
{"option": "Answer 1", "correct": false},
{"option": "Answer 2", "correct": true},
{"option": "Answer 3", "correct": false}// no comma here
],
"correct": "<p><span>Well done!</span> The correct answer is Answer 2.</p>",
"incorrect": "<p><span>Incorrect</span> The correct answer is Answer 2.</p>" // no comma here
}
So the “q” line is where I want to call an image in.
Anyone got any ideas?
Thanks
Thanks guys, pointed me in the right direction in the end.
Just needed to escape the quotes in the img tag;