Please look at my Jsfiddle application
, you will see a box on top with some controls. please follow these steps below in the fiddle to be able to use it
Step 1: Open the fiddle and you see an options and answers section on top. Open the grid and select either option 3, 4 or 5 as they will all display a textbox underneath in the "Number of Answers" section.
Step 2. Click "Add Question", a new row is added in the table.
Step 3: In the new row you just created, open the grid and select option "true or false" (true or false is the only option where except displaying a textbox for "Number of Answers", it displays a string which is "Only 1 Answer". Now look at the top at the answers and options feature again and you see the "Number of Answers" textbox changes to say "Only 1 Answer".
Now this should not happen, if the option is changed within one of the rows that you have added, it should only change features within that row only. If you look properly you realise in the row you have just added that the option type textbox has changed to "True or False" and that the buttons under the "Answer" column displays the buttons "True or Fals" which is what it is suppose to do. (Ignore "Number of Answers" column in new row you added, I will fix this later).
But if you look at the top control, the Option Type hasn't changed as it still says the option you have chosen between 3, 4 or 5 and the buttons in the "Answer" section hasn't changed as it still display buttons from A to (C if chosen option 3, D if chosen option 4 or E if chosen option 5). That is great, but why is it changing something in the "Number of Answers" section on top? It should leave that section alone as well if something is editted in one of the rows you have added? It should only change if the "Option Type" on top changes.
Can somebody fix this as I have been struggling on this for days. The person who will be awarded 500 points will be the one which shows a working example in the JSFiddle application. (To Save the fiddle just click on the update button on top of the fiddle and it will display a new url).