Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $('#myform').on('submit', function(e){
- let username = $("#username").val();
- let password = $("#password").val();
- let url = $('#myform').attr('action');
- $.post(url, {
- username:username,
- password:password
- }, function(d){
- alert('success');
- });
- });
- $('#login').click(function(e){
- e.preventDefault();
- $('#myform').submit();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement