pass variable object to Modal form

1

I have solved it this way:

From the page, I call the function and assign the content to a variable that you assign to a div.

conv + = '' +                         '' +                         '' + subDiscount + '' +                 '';

From the page I pick them up like this:

$('#myModal').on('show.bs.modal', function(e) {    //Lo que sucede cuando abre el modal.

    nameConv = $(e.relatedTarget).data().name; //Aqui tomo la variable nombre de convenio
    desConvenio = $(e.relatedTarget).data().desc; descripcion
    desDescuento = $(e.relatedTarget).data().des_desc; descuento descripcion
 });
    
asked by Lorenzo Martín 12.02.2018 в 20:38
source

0 answers