I am processing a JSON file and want to display the contents in a <div>
i dont know the number of records of the json file so i want to create teh appropriate divs on the fly. how should i go about it?
the structure i am looking at is:
<div class=1>
<div class=2>
<div class=3>
</div></div></div>
var div = $('<div/>')will create an emptydiv, in which you can insert your data, and ultimately insert it into the DOM