Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-03-2012, 05:37 AM   PM User | #1
sachinmaster
New to the CF scene

 
Join Date: Dec 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
sachinmaster is an unknown quantity at this point
string displayed 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][1]

[1]: http://jsfiddle.net/dtJaK/10/
sachinmaster is offline   Reply With Quote
Reply

Bookmarks

Tags
dom, jquery

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:56 AM.


Advertisement
Log in to turn off these ads.