1
I’m doing an operation where I got the call of a method, in this specific case how I could catch the event.preventDefault()
form.
<button type="button" class="btn btn-primary" onclick="AdicionarEditarRegistro('@controller','Edit')">Salvar</button>
Example:
function AdicionarEditarRegistro(controller, action) {
debugger;
var t = $("input[name='__RequestVerificationToken']").val();
var urlCompleto = "/" + controller + "/"+ action +"/";
var formulario = $("#FormularioCompleto");
alert('pegar o :' + 'event.preventDefault()');
}
Agadeço the help! it worked!
– Harry