string display problem
What is happening is that when the user selects the option "True or False" in a particular row, a string is appering in two places where actually it is suppose to appear in one place. If you follow the steps in my fiddle then you will understand what is happening.
- **Step 1:** open the grid and select option 4. You will see that a textbox below the option appears for the number of answers. (This happens for options 3, 4 and 5 but not True or False which instead displays a string "Only 1 Answers").
- **Step 2:** Click on the "add question" button, this will insert your details into a new row.
- **Step 3:** Now in the row you have just added, select open grid and click on option "True or False". Now what happens is that if you look at the "Number of Answers" column next to the "Option Type" column, it will display the string "Only 1 Answer". This is fine.
The problem is that if you look at the control at the top and look at the "Number of Answers" section, it displays "Only 1 Answer", this should not happen. It should only display "Only 1 Answer" at the top if the "Option Type" option at the top is "True or False", not the "Option Type" in the row you have just inserted is "True or False".
Can anyone fix this because I cannot figure out what to do?
code is in jsfiddle, click [here]