Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var href = $(this).attr('href');
- $('.btnYa').off();
- $('.btnYa').on('click', function() {
- $.ajax({
- 'url' : href,
- 'type' : 'POST',
- 'success' : function(result) {
- if (result == 1) {
- $(".modal").modal('hide');
- tr.fadeOut();
- toastr.success('Data berhasl di hapus', 'Informasi');
- }
- }
- });
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement