Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function(e) {
- $('#edit').click(function() {
- $.ajax({
- type: "POST",
- url: 'profiles/file.php',
- success: function(data) {
- $('#result').html(data);
- }
- });
- });
- });
- $(function(e) {
- $('#edit').click(function() {
- $.ajax({
- type: "POST",
- url: 'profiles/file.php',
- dataType: "json",
- data: {"key": "value"}
- success: function(data) {
- $('#result').html(data);
- }
- });
- return false;
- });
- });
Add Comment
Please, Sign In to add comment