Created
April 5, 2015 00:05
-
-
Save Tang8330/b70a1208b724e91bc775 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('form[name=metadata]').submit(function(e) { | |
var _this = this; | |
e.preventDefault(); | |
$.ajax({ | |
url: _this.action, | |
type: _this.method, | |
data: $(_this).serialize(), | |
success: function(response) { | |
$(_this).fadeOut('slow'); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment