$(document).ready(function(){
$.ajax('lista_cursos.json', {
dataType: 'json',
contentType: 'application/json',
cache: false
})
.done(function(response){
var html;
$.each(response, function(index, element){
html = '
'
html += '
'
html += '

'
html += '
'
html += '
'+element.titulo+'
'
html += '
'
html += '- Próxima fecha: '+element.fecha+'
'
html += '- Duración: '+element.duracion+'
'
html += '- Nivel: '+element.nivel+'
'
html += '- Inversión: '+element.costo+'
'
html += '
'
html += '
Saber más'
html += '
'
html += '
'
html += '
';
$('#lcursos').append(html);
});
});
});