SitePoint Sponsor

User Tag List

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

    Buttons are displayed where they shouldn't be

    In my application I have some buttons which should not be either be displayed or hidden depending on the option. Follow these steps below in my fiddle to see what is happening in my application:

    step 1: Open the grid and select option 3, you will see 3 buttons "A" to "C" will appear and two buttons will appear below them "Select All Buttons" and "Remove All Buttons".

    step 2: Click on the "Add Question" and it will add a new row underneath displaying the option you have selected and the answer with it.

    step 3. Now this is where the problem occurs. If you change the option in the row you have just added to "True or False", it will remove the "Select All Answers" and "Remove all answers" buttons. This is because I have stated that
    if option equals "True or False". Then hide the buttons "Select All Answers" and "Remove All Answers". But as the option is changed within the row you have added and not in the top control, it should not have any affect on the
    top control at all.

    So what my question is that if an option is changed within one of the rows underneath, what do I need to change in the code so that it does not have an affect on the "Select All Answers"
    and "Remove All Answers" buttons. As you can see if the option changes within a row, it does not change the "Option Type" on the top control and the Answer Buttons do not change at the top control.
    I want the same with the "Select All Answers" and "Remove All Answers" buttons where it is not affected in the top control when a option is changed within one of the added rows.

    Code is in JsFiddle, click here

  2. #2
    Non-Member Max Height's Avatar
    Join Date
    Dec 2011
    Posts
    303
    Mentioned
    6 Post(s)
    Tagged
    1 Thread(s)
    This is the same or very similar question you ask in other threads.

    If I post a solution here, how do I know a solution hasn't already been posted in one of your other threads? I don't see the point in spending time posting a solution when you might already have it in another thread.

    I think you would be more likely to get help if you post all your questions in the one thread.

  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 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
    Then I am misunderstanding them, because they look very similar to me


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
  •