Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("#btn-change").click(function (e) {
- $.ajaxSetup({
- headers: {
- 'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content')
- }
- })
- $.ajax({
- type: 'POST',
- url: '',
- data: {
- password: $('#password').val(),
- user: $('#user').val(),
- },
- dataType: 'json',
- success: function (data) {
- console.log("succ");
- },
- error: function (data) {
- console.log('Error:', data);
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement