Good is the first time that I participate I am wanting to make the variables: xco, xto, xde, xcc recognize me in the query sql q I do below in vsql, it will not be possible if you can give me a hand or some idea to be able to find that way, thanks in advance
function mostrarValores()
{
xco = parseFloat(document.getElementById('idcondominio').value);
xto = parseFloat(document.getElementById('idtorre').value);
xde = parseFloat(document.getElementById('iddepartamento').value);
xcc = parseFloat(document.getElementById('idconcepto_consumo').value);
var vsql = '<?php echo $sql=DB::table('costo_condominio_mensual')->select('Pago')->where('idcondominio','=', xco)->where('idtorre','=',xto)->where('iddepartamento','=', xde )->where('idconcepto_consumo','=', xcc )->get(); ?>'
$("#consumo").val(vsql)
}