Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function () {
- var email = document.getElementById("email-field");
- var password = document.getElementById("password-field");
- function login() {
- console.log("User logging in");
- var user = {
- email: email.val(),
- password: password.val()
- }
- $.ajax({
- type: 'POST',
- url: '/Home/Login',
- dataType: 'json',
- data: user,
- success: function(result) {
- console.log(result)
- }
- });
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement