Hello Folks,
Below is sample JSON data:
{[
{storename: "abc", loc: "xyz", distance: "2", time: "00:00"},
{storename: "abc", loc: "xyz", distance: "2", time: "00:00"},
{storename: "abc", loc: "xyz", distance: "2", time: "00:00"},
{storename: "abc", loc: "xyz", distance: "2", time: "00:00"},
{storename: "abc", loc: "xyz", distance: "2", time: "00:00"},
{storename: "abc", loc: "xyz", distance: "2", time: "00:00"},
{storename: "abc", loc: "xyz", distance: "2", time: "00:00"}
]};
Below is Div structure:
<div class="pane">
<h3>Test</h3>
<p><span class="logo">test</span> 3 mi</p>
<p class="stores-desc">Testing</p>
<p class="stores-timing"><strong> Test </strong> 0:00 am - 0:00 pm <strong>tst</strong> 0:00 pm <strong> tstnbsp;</strong> 0:00 am - 0:00 pm</p>
<div class="store-checkin">Click here</div>
</div>
Now I have to create a div object in jquery with above structure and as well as need to append the JSON data in the appropriate tags. Does anyone have any idea on this implementation.
As simple need to create a div Object in jquery and append/pass the JSON data into it(appropriate tags).
Thanks.