add new field button in form


i searched Yii website with no resut

i have this form (invoice)

i wanna have a + product button so when i click on it i want it insert a new filed from product table

[ i want another product i click the + product button again

how should i do it, or at least what shoudl i search for

i tried dynamic form, jquerry

Thank you,

an example would be perfect

Here is an example in the extension.

This example uses post, but is possible to do with ajax request and even with pure js (without any request to the server).