MyBB Community Forums

Full Version: Login from bootstrap modal?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Login from bootstrap modal?

i have tried everything now, and still cannot login

<form id="quick-login" role="form" class="form col-md-12 center-block" method="post" action="{$mybb->settings['bburl']}/member.php">

<script type="text/javascript">
    $(function(){
       $('quick-login').on('submit', function(e){
            e.preventDefault();
            $.ajax({
                url: "{$mybb->settings['bburl']}/member.php",
                type: "POST",
                data: $("quick-login").serialize(),
                success: function(data){
                    alert("Successfully submitted.")
                }
            });
       }); 
    });
</script>

[Image: GihqhGM.jpg]