How to create multiple inputs in yii + Q&A admin page

Posted by user1764357 on Stack Overflow See other posts from Stack Overflow or by user1764357
Published on 2012-10-22T10:31:08Z Indexed on 2012/10/22 11:00 UTC
Read the original article Hit count: 188

Filed under:
|
|

In yii, i am developing page for Creating Question with multiple options using forms. So i have two tables

Question

  1. QuestionId
  2. Question
  3. optionId

Option

  1. OptionId
  2. Option

To create multiple options, option field should be provided with add button so that after clicking add button, it should display new textbox control to get the new option. All these options displayed in a gridview. So can you please help me. I am very new to yii.

© Stack Overflow or respective owner

Related posts about database

Related posts about gridview