jQuery
<script type = 'text/javascript'>
$('document').on('submit', '#frmLogin', function(e){
e.preventDefault();
alert('submitted');
});
</script>
HTML
<form class = 'Frm-cb' id = 'frmLogin' action = 'http://localhost/mgo/modules/login/php/check_login.php'> <h1>Welcome Back</h1> <label>email</label> <input type = 'text' name = 'loginEmail' id = 'loginEmail'> <label>password</label> <input type = 'password' name = 'loginPass' id = 'loginPass'> <div class = 'checkHolder'> <input type = 'checkbox' name = 'loginRemember'> <a>remember me</a> </div> <div class = 'checkHolder'> <input type = 'checkbox' name = 'loginCookie'> <a>stay logged in</a> </div> <button type = 'submit'>go</button> <a href = '#'>Forgot password</a> </form>

New Topic/Question
Reply



MultiQuote



|