title: Use jQuery for move variable to another html and load it
body: <p>I'm working with twig for render data.
  Here is my code:</p>
  <pre><code>function addProduct(product_id, product_image, product_name) {
          product_ids.push(parseInt(product_id));
          // console.log(file_id);
  
          $.each(product_ids, function (i, val) {
              products[i]= {id: product_id, image: product_image, name: product_name};
          })
          console.log(products);
          $(&quot;#search-pop&quot;).slideUp();
          $(&quot;.list-selected-product&quot;).append(
              {% include '_layout/include/_render_product_select.html.twig' with {'products': products} %}
          );
          // console.log($(&quot;.list-selected-product&quot;).html(products));
      }
  </code></pre>
  <p>Now i want to render_product_select but i don't know how can transmission products to this.
  Please help me!
  Thank so much.</p>