Change array inputs based on Select

I have a dropdown select in my component. And below is array of inputs based on the relationship of values in select. I already get the changed values based from the dropdowns. What I want is to everytime I change the value from select(value is id) get its relationship and rerender the component with array inputs based from selected value.

Can you put code that you tried with?

Normal select or select2 option I mean third party select2