自动更新购物车使用购物车页面Magento 2中的递增和递减按钮

I have included + and - to increment and decrement the quantity of a product in the cart page. Now i need to update it automatically without clicking the update shopping cart button. How can i do that? Kindly help me to fix this problem

Use jQuery ajax() Method ajax function tutorial

<button type="button" name="button" id="button-minus"> - </button>
<script>
$(document).ready(function(){
   var count = 0;
   $("#button-minus").click(function(){
     if ( count > 0 ){
        $.ajax({url: "url here", success: function(result){
            $("#div").html(result);
            count--;
        }});
     }
  });
});
</script>