Jak dostat do multiplieru oninput js event

vanaveno
Člen | 144
+
0
-

Ahojte, prosím, jak dostat do
{input „quantities-item_$id“, oninput ⇒ ‚addQuantity( { $id } )‘, class ⇒ ‚quantity ta-center‘} nechce mi to tam vypsat to id.

Ozzrel
Generous Backer | 55
+
0
-

bez mezer {$id}

vanaveno
Člen | 144
+
0
-

Díky za reakci. Zkoušel jsem oninput ⇒ ‚addQuantity({$id})‘ Uncaught ReferenceError: $id is not defined
A tohle je výstup.
<input type="text" name="quantities[item_31]" id="frm-cartForm-quantities-item_31" data-nette-rules="[{"op":":max","msg":"Maximální množství je 406.","arg":406}]" value="1" oninput="addQuantity({$id})" class="quantity ta-center">

Ozzrel napsal(a):

bez mezer {$id}