Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;(function ($) {
- $.fn.deletes = function () {
- this.click(function () {
- $.ajax({
- success: function () {
- this
- .parents('.deletable:first').remove();
- }.bind(this)
- })
- }).bind(this);
- }
- })(jQuery)
Add Comment
Please, Sign In to add comment