I'm doing a function with jQuery, but it does not work, that is, it does not arrive in my controller, someone could help me please, follow the code:
var Aprovar = function () {
$.ajax({
url: 'GerenciaPassagem/AprovarPassagem',
type: 'POST',
contentType: "application/json; charset=utf-8",
dataType: "json",
data: JSON.stringify({ mes: $("#ListaPeriodo").val() }),
success: function (data) {
$("#tabFiltra").html(data);
drawTable();
},
beforeSend: function () {
$.blockUI({ message: '<img src="' + url + '/Content/ajax-loader.gif" alt="Aguardando..."/>' });
},
complete: function () {
$.unblockUI();
},
error: function (a, b, c) {
var x = a;
}
});
}
HTML
<input type="button" value="Aprovar" id="btAprovar" onclick="listaPassagens(); return false;" style="margin-left: 9px;" /> @*onclick="Aprovar(); return false;"*@