SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Dec 2011
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    I do not want it to change Number of Answers display

    I have a slight situation in my app in my jsfiddle. I have 4 options. Options 3,4 and 5 will display a textbox while option True or False displays a string "Only 1 Answer".

    Please follow these steps below to be able to use the app and see the problem.

    Step 1: Open the fiddle and you see an options and answers section on top. Open the grid and select option 3. Buttons A, B and C would appear.

    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". Now look at the top at the answers and options feature again and you see the number of answers textbox change to say "Only 1 Answer".

    This is not supppose to happen. What my problem is which needs addressing is that if the user changes an option within the table row they have just added to "True or False", it should not replace the number of answers textbox into the phrase "Only 1 Answer".

    So what my question is that if the user changes an option in a added row from a number option to True or False, I do not want the Number of answers section on the top control to change. In fact it should be not affected at all. If you look properly if the
    user changes an option in a row, it does not change the option type or the Answer in the control at top. I want it exactly the same for Number of Answers in the top control, I don't want Number of Answers section on top control to be affected if option changes within an added row.


    code is in jsfiddle, click here Please use the fiddle to test your code. It will be best if you can provide a working sample.

    Thank you

  2. #2
    Non-Member Max Height's Avatar
    Join Date
    Dec 2011
    Posts
    303
    Mentioned
    6 Post(s)
    Tagged
    1 Thread(s)
    Isn't this at least the 3rd thread you've started asking the same question?

  3. #3
    SitePoint Member
    Join Date
    Dec 2011
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am using the same method in asking the users to follow the steps as I find it easier for you users to use the fiddle and explain what is happening. The questions though are completely different

  4. #4
    Non-Member Max Height's Avatar
    Join Date
    Dec 2011
    Posts
    303
    Mentioned
    6 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by sachinmaster View Post
    The questions though are completely different
    If you say so, but they look very similar to me

  5. #5
    SitePoint Member
    Join Date
    Dec 2011
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Steps may seem similar to be able to use an app but each question will have a different step and a completley different question to follow with the steps


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •