title: button delete do not remove product
body: <p>I try to include a delete button with a javascript message. When I click on the trash, I have a message appear to confirm the action. But if I have 3 products, the message appears 3 times, 2 products, 2 times.
  Also, the product is not deleted after click on the confirm button.</p>
  
  <p>Thank you</p>
  
  <pre><code>           $form = HTML::form('cart_quantity', CLICSHOPPING::link(null, 'Cart&amp;Update'), 'post', 'role="form" id="cart_quantity"', ['tokenize' =&gt; true]);
  
             for ($i=0, $n=count($products); $i&lt;$n; $i++) {
                $products_name_url = $this-&gt;getProductsUrlRewrited()-&gt;getProductNameUrl($this-&gt;getProductID($products[$i]['id']));
  
                $products_name = HTML::hiddenField('products_id[]', $products[$i]['id']);
                $products_name .= HTML::link($products_name_url, $products[$i]['name']);
  
      //no message
      //          $trash = HTML::link($this-&gt;link(null, 'Cart&amp;Delete&amp;products_id=' . $products[$i]['id']), '&lt;i class="fas fa-trash"&gt;&lt;/i&gt;', 'alt="' . $this-&gt;getDef('button_remove')) . '&amp;nbsp;&amp;nbsp;&amp;nbsp;'; ==&gt; works fine but no message
  
  
  
      //with message
                $remove_product = ['params' =&gt; 'id="remove_product' . $products[$i]['id'] .'"'];
                $trash = HTML::link($this-&gt;link(null, 'Cart&amp;Delete&amp;products_id=' . $products[$i]['id']), HTML::button(null, 'fas fa-trash',null, null, $remove_product)) . '&amp;nbsp;&amp;nbsp;&amp;nbsp;';
  
  
                $test = 'remove_product' . $products[$i]['id'];
                $trash .= '&lt;script&gt;
      var $button = $(\'#'. $test . '\')
      $(function() {
        $button.click(function () {
          $(\'form\').submit(function () {
            if (!window.confirm(\'Are you sure?\')) return false
          })
        })
      })
      &lt;/script&gt;         
      ';
      }
  ?&gt;
  &lt;/form&gt;
  </code></pre>