Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- $(document).ready(function(){
- function ajax_delete_user(){
- let currentId = current_user()
- console.log(current_user);
- $.ajax({
- url: '/alunos/del/'+ document.getElementById('_id').value,
- data: valorId,
- type: 'GET',
- success: function(response){
- console.log(response);
- },
- error: function(error){
- swal("Ops, algo deu errado","ERRO","error");
- console.log(error);
- }
- });
- }
- $("#trash").click(function(event){
- event.preventDefault();
- ajax_delete_user();
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement