People, I have a system here that it takes the data in a JSON and lists it in an HTML page, however it has the list as follows: it only displays a title and every time I update my browser it displays the next title.
I wish it was one underneath the other. View all titles in ul li
.
The code that I believe would list this below:
var cemf = cemf || {
js: {}
};
cemf.js.Interface = function(lista){};
cemf.js.Interface.prototype.GerarItem = function(lista){
$(' #Titulo')
$('#Titulo').html(lista.Titulo);
};
Example of JSON that is passed:
[{"Object":"foto1","Titulo":"Exemplo do titulo 1"},{"Object":"foto2.jpg","Titulo":"Titulo":"Exemplo do titulo 2"}]