daily pastebin goal
50%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(function(e) {
  2.   $('#edit').click(function() {
  3.     $.ajax({
  4.       type: "POST",
  5.       url: 'profiles/file.php',
  6.       success: function(data) {
  7.              $('#result').html(data);
  8.   }
  9. });
  10. });
  11. });
  12.    
  13. $(function(e) {
  14.   $('#edit').click(function() {
  15.     $.ajax({
  16.       type: "POST",
  17.       url: 'profiles/file.php',
  18.       dataType: "json",
  19.       data: {"key": "value"}
  20.       success: function(data) {
  21.              $('#result').html(data);
  22.       }
  23.     });
  24.     return false;
  25.   });
  26. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top