Get Input Value at onchange

Dear Experts,

I would like to get calculate the subtotal when the Qty has changed.


and i want to pass the “qty” entered by user to the components but “this.value” is not working.

<input wire:model="qtys.{{  $product->id }}" wire:change="recalc(this.value)" >

can someone help me please? Thanks

Hey, @mrhaha80

use updated method for example

...
public function updatedQtys($field)
{
   $this->recalc($field);
}