Hi! I need to know how one would put the following JSON into elements with a class name of article
using jQuery AND just some basic JavaScript:
{"elements": [
{
"head": "story 1",
"writer": "journalist 1"
},
{
"head": "story 2",
"writer": "journalist 2"
}
]}
Trying to achieve the below HTML. I'm very new to JSON, etc. Looking to learn how by example..
<div class="article">
<h5>story 1</h5>
<p>By: journalist 1</p>
<h5>story 2</h5>
<p>By: journalist 2</p>
</div>