title: jquery 1.12.4 Maximum call stack size exceeded
body: <p>I am currently using jQuery1.12.4 and it is showing <code>Maximum call stack size exceeded</code> error when I make a post request but I am not looping it nor am I selecting a lot of values.</p>
  
  <p>javascript</p>
  
  <pre><code>jQuery(document).ready(function ($) {    
      $('#update-cart-btn').click(function (e) {
          e.preventDefault();
          console.log('clicked')
  
          let prodId = $('#product-id').val();
          let prodQuantity = $('#quantity-number');
  
          $.post('/api/shop/cart/add', {
              itemId:prodId,
              itemQuantity:prodQuantity
          }, function (result) {
              console.log(result)
          })
      });
  });
  </code></pre>
  
  <p>What am I doing wrong? the <code>console.log('clicked')</code> is only getting called once</p>