Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('body').on('click', '.item', function() {
- var id = $(this).attr('data-value');
- if ($(this).data('value')) {
- $.ajax({
- type: 'POST',
- url: URL + '/admin/ajax/delete/coursestudent',
- data: 'id=' + id,
- success: function(resp) {
- $('.selectize-input div[data-value="' + id + '"]').remove()
- Snackbar.show({ text: " " + id + " User silindi", customClass: 'bg-success' });
- }
- });
- } else {
- alert(" "+ id + " not delete");
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement