Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("#delfoto").click(function () {
- id = $(this).data("id");
- $.ajax({
- url: 'delete.php?id=' + id,
- cache: false,
- contentType: false,
- processData: false,
- data: data,
- type: 'post'
- }).done(function (data) {
- fetchUser();
- $('#cadatro').modal('hide');
- $('#foto')[0].reset();
- });
- });
- <a id="delfoto" data-id="<?php echo $row['id'] ?>"><i class="fas fa-trash"></i></a>
Add Comment
Please, Sign In to add comment