You can do this many ways:
- You can create a bunch of elements in jQuery via
$('<div/>').html('Hi Mom')
and build up your DOM that way - You can build up the HTML you want as part of your ajax return set (wastes bandwidth)
- You can create a template and change values.
IE:
<div id="someTemplate" style="display: hidden">
<div class="username"></div>
...
</div>
Now you can get the contents of someTemplate, duplicate it, fill in the details by classname, and you're good.