I have a simple JS quiz on a page that generates answers to question results and places them into the html. On a couple of the answers, id like it to say 'for more information CLICK HERE'. How do I add a link into the JS string that is getting placed into the html?
Im very new to JS so not really sure how to go about this...
This is the JS that is getting called in:
{ // Question
"q": "<h4>Is it recommended to use one vial of BOTOX<sup>®</sup> on more than one patient?</h4>",
"a": [
{"option": "TRUE", "correct": false},
{"option": "FALSE", "correct": true}
],
"correct": "<p><span>CORRECT!</span> As the diluents in BOTOX<sup>®</sup> do not contain a preservative it is not recommended to use on more than one patient.2 If you would like to refer to this information again, it can be found via the link below.</p>",
"incorrect": "<p><span>INCORRECT.</span> As the diluents in BOTOX<sup>®</sup> do not contain a preservative it is not recommended to use on more than one patient.<sup>2</sup> If you would like to refer to this information again, it can be found via the link below.</p><p>***here is where I would like the link to be***</p>"
},
***here is where I would like the link to be***
- thats where I need to write the link. So how do I call the link var in that space? – DaveP19 Dec 12 '16 at 00:47