Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('.action-delete').click(function(e) {
- e.preventDefault();
- element = $(this).parent().parent()
- element.hide();
- url = this.dataset.url
- $.ajax({
- type: 'DELETE',
- url: url,
- success: function (result) {
- console.log(result);
- }
- });
- }
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement