My problem is that I can not send variables to my modal to make a select for my table in that modal.
I can send data with: ejm: In my PHP:
<a href="#finalizarCliente" class="delete" data-toggle="modal" data-cod_base="<?php echo $cod_base; ?>" data-tuc="<?php echo $tuc?>">
<i style="color: #58E531;" class="material-icons" data-toggle="tooltip" title="Finalizar" >how_to_reg</i>
</a>
In my script:
$('#finalizarCliente').on('show.bs.modal', function (event) {
var button = $(event.relatedTarget)
var tuc = button.data('tuc')
$('#edit_tuc').val(tuc)
var cod_base = button.data('cod_base')
$('#edit_id').val(cod_base)
})
This way I open my modal and I assign it the data but in inputs, but I can not send a PHP variable that is with $ edi_code to be able to select my table that is in that modal. I need help please.