Get all values on change select

Hello guys!

I want to do something that I thought would be simple, I have a form that acts as a “calculator”.

Everything is < select > I have X the idea is when I change 1 of them to call a function that collects all the values ​​to calculate.

The problem is that this is dynamic, I don’t know how many fields we are going to have, therefore I cannot use wire:model.

It would be something like this, but not with the submit, with on change.

I’ve tried quite a few things, but can’t get the values, any ideas?

You might be able to use an array for modeling:

Can I check some examples?

I don’t understand how I can use nested data, since I don’t know the fields that will come to me :frowning:

<input type="text" wire:model="parent.$var????">

Please see here:

You can add a wire:change=“calculate”

Inside the calculate function you can then calculate based on the set select options