Skip to content

Instantly share code, notes, and snippets.

@tuupola
Created January 17, 2011 13:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuupola/782849 to your computer and use it in GitHub Desktop.
Save tuupola/782849 to your computer and use it in GitHub Desktop.
$("a.delete").live("click", function(event) {
var self = this;
$.post(this.href, {_method: "delete"}, function(data) {
$(self).parent().parent().hide();
});
return false;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment