0
I have a function that performs by clicking a button on jQuery
.
$('.btnEntrega').click(function (e) {=
idPrograma = $(this).data('id');
CoresFormasPlacas($(this).data('placa'), $(this).data('especie'), $(this).data('categoria'), $(this).data('tipo'));
$('#modalConfirmaEntrega #exampleModalLongTitleAuto').html("<br/> Autorização: " + $(this).data('autorizacao'));
ConfirmaEntrega("Confirma a Entrega?");
e.preventDefault();
e.stopPropagation();
});
I wish that when another button was clicked, it would call that same function, so I did the following:
$('.btnDigital').click(function () {
$(".btnEntrega").click();
});
But it doesn’t work, and it doesn’t make any mistakes. How do I call the top function when the "btnDigital" button is clicked?
have tried:
$('#botao').trigger('click');
– Ivan Ferrer
I tried, but it didn’t work
– Renan Mussatto