'Cart update - removes jquery events

I am new to woocommerce. I added in quantity-input.php file short html code with "+" and "-" divs near quantity input to increment/decrement quantity of product. Then I added short code in functions.php to handle that in jQuery. That works fine. But the problem is when I click "update cart" button - after successfull refresh those jQuery events for added divs are gone. Not sure why. Not sure how should I add this jQuery code and where to be able to use it each time, even after cart refresh.

Any help appreciate.

BR



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source