add data in a list

add data in a list

Hello 
I want to add in a list  some data from the database 

when I apply this .js , the data is writen out a list 

.html 

<ul data-role="listview" id="pop_event">
</ul>

.js

 var div = $("#pop_event");
for ( var i = 0; i < result.invocationResult.resultSet.length; i++) {
div.append("<li><a ><table><tr><td><img src='../images/heart.png'></td>"+
"<td>"+ result.invocationResult.resultSet[i].name_event+"</td></tr>"+
"<tr><td></td><td> Nombre de participants:  "+ result.invocationResult.resultSet[i].nb_part+
" </td></tr></table> </a></li>");
}