shadowbox on labels created by javascript code

0

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.

    
asked by Max 28.08.2018 в 17:17
source

0 answers