Auto-fill data at table

Hi everybody,

I have a child table, I want when I select data in a select field. child table will automatically create rows of data as I want.
Eg:
I choose Select as A, then the child table will automatically create 3 rows B C D with the data as I want.
thanks