How can i put _id. to the server? thanks and how can i take data from {{#each }}? how can use this.?


#1

help i need to pass the _id of the drink and a quantity to the server, and calculate the total price on the server, and create an order based off of that.

{{#each drinks}}
            <tr>
              <td>{{nombre}}</td>
              <td>$ {{price}}</td>
              <td>{{impuesto}} %</td>
              <td><form class="new-order">
<p><input name="cantidad" type="number" placeholder="Cantidad" /></p>

</form>

</td>
            </tr>
          {{/each}}

#2

<input type="hidden" name="_id" value={{_id}}" />