have if I can explain myself. In javascript I am trying to go through a loop for I add a table to href tags that in turn will display a modal window with Shadowbox, but I can not get the shadowbox to work, it opens in full window. I show you the code
for (var i = 0; i < curso.length; i++) {
$('#tblCursos').append('<tr><td><a class="liga" rel = "" title="' + curso[i].titulo + '"' + ' href="' + curso[i].liga +'"' + '><div>Ver</div></a></td></tr>');
}
$('.liga').click(function () {
Shadowbox.clearCache();
Shadowbox.setup();
var vShadow = 'shadowbox;width=518;height=350;';
$(".liga").attr("rel", vShadow);
})
I hope you can help me, regards.