I have the following code html
:
When he clicks delete on div excluir-produto-carrinho
he should get the id of the data-id-prod-cart . How do I do this?
I have tried the delete button which is the div excluir-produto-carrinho
like this:
var idStorage = $(this).data('id-prod-carrinho');
and it does not work. Like it does not bring anything.