yii create dynamic text box

Hi guys,

I have created a form for customer ordering which in that the customer can order over one product, so i want to generate a dynamic product text field and quantity text filed with javascript.

would you give me any examples and advices that related to this topic.

I have four models: Product, Customer, Order, and Order_detail.

thanks in advance.