Guest User

Untitled

a guest
Feb 13th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  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. });
Add Comment
Please, Sign In to add comment