My modal does not open

0

The modal is working normally but does not open within this function, I am very lay in javascript

        $(function($) {
        $('#frmLogin').submit(function() {

            $('div.mensagem-erro').html('');    

            $(this).ajaxSubmit(function(resposta) {

                if (!resposta)
                    window.location.href = '3.php';
                else
                {
                    $('div.mensagem-erro').html(resposta)
                    $('#recebeusalario').modal();
                }

            });

            return false;

        });
    });
    
asked by anonymous 09.05.2018 / 18:57

0 answers