67
rated 0 times
[
73]
[
6]
/ answers: 1 / hits: 68739
/ 13 Years ago, tue, november 29, 2011, 12:00:00
I have this following JSON data snippit:
{items: [
{
title: sample 1,
author: author 1
},
{
title: sample 2,
author: author 2
}
]}
How do I populate the following html elements with this data:
<div class=news-story>
<h5>sample 1</h5>
<p>By: author 1</p>
<h5>sample 2</h5>
<p>By: author 2</p>
</div>
I want accomplish this with Javascript not jQuery.
More From » html