I'm having a problem submitting a success modality after clicking a btn.
if ('@ViewBag.Mensagem' != '') {
$(function () {
$('#ModalSucesso').modal('toggle');
$('#ModalSucesso').modal({ backdrop: 'static', keyboard: false });
});
} else {
$(function () {
$('#ModalSucesso').modal('hide');
});
}
</script>
And my modal:
<div id="ModalSucesso" class="modal fade success" role="dialog" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<br />
<br />
<div class="modal-body" style="text-align: center;">
<p>@ViewBag.Mensagem</p>
</div>
<div class="modal-footer" style="text-align: center;">
<button type="button" class="btn btn-primary" data-dismiss="modal" onclick=" location.href = '@Url.Action("DocumentoCadastro", "SecretariaExecutiva")' ">Ok </button>
</div>
</div>
</div>
</div>
When entering the console, the following error is displayed:
Failed to load resource: the server responded with a status of 403 (Forbidden)
In addition, it also appears this error:
matrix.tables.js: 10 Uncaught TypeError: $ (...). uniform is not a function at HTMLDocument. (matrix.tables.js: 10) at j (jquery.js: 3137) at Object.fireWith [as resolveWith] (jquery.js: 3249) at Function.ready (jquery.js: 3455) at HTMLDocument.J (jquery.js: 3496)
I've done almost everything to try to solve this problem, I'm new to javascript and I still have a lot of difficulties.