Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form id="fk-login-form">
- <input id="fk-email-input" type="email" />
- <input id="fk-password-input" type="password" />
- <input type="submit" />
- </form>
- <script>
- var initiateLogin = function() {
- // Add handler to submit event
- $("#fk-login-form").submit(function(e) {
- let username = $("#fk-email-input").val();
- let password = $("#fk-password-input").val();
- login(username, password);
- // Stop the from from reloading the page
- return false;
- });
- }
- </script>
Add Comment
Please, Sign In to add comment