Site icon Hip-Hop Website Design and Development

Execute jQuery with custom event listener after successfully add an item to the cart

This is my first post, so please be gentle. I’m already successfully executing some jQuery codes in my woocommerce cart-page after updating the item quantity (Ajax) with the following code:

$( document.body ).on( 'updated_cart_totals', function(){
    //re-do your jquery
});

I also need a similar function to execute a jQuery code after adding a cross selling item (with click on the ajax_add_to_cart_button) in the cart-page. So far i checked the cart.js file to find a custom event to handle this – but i was not able to find a solution. Any idea how to execute a jQuery code after successully adding a cross selling item to the cart in the cart-page?