This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes I want my options and answers in my table row to match the functionality (Jsfiddle)? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "I want my options and answers in my table row to match the functionality (Jsfiddle)?" Watch "I want my options and answers in my table row to match the functionality (Jsfiddle)?" New topic
Author

I want my options and answers in my table row to match the functionality (Jsfiddle)?

Carl Brooks
Greenhorn

Joined: Dec 24, 2011
Posts: 2
Hi,

This is first time I am using the Big Moose Saloon Forums so Hello to everybody. My question is this:

Follow these steps in my fiddle to create an option an answer

Step 1: Open grid, select an option or couple of options to see how it works. Then type in a number in the Number of Answers textbox. This determines how many answer buttons you can select below. So if you typed in 2 then you can only select 2 buttons, any more and it comes with an alert.

Step 2. Click on the "Add Question" button, You will see the same features in the table row showing the option and answers you have selected. Now imagine if you wanted to change the option or answer, it requires the same functionality as the option and answer feature above. Also my "Answer" column in the table is incorrect as it should show all of the buttons within the option showing the buttons selected (the same as above in the fiddle)

does this require me to duplicate the functions, or do I need to use the .on() function to create a handler for each row?

Please use the fiddle to test your coding to see if it works before posting in an answer.

Full code in fiddle, click [here][1]


[1]: http://jsfiddle.net/C443c/53/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I want my options and answers in my table row to match the functionality (Jsfiddle)?
 
Similar Threads
Trigger Undo from Javascript?
how to create a new datatable on rowclick from another datatable
157 Question Help and Resourses
IBM Exam 157 - Questions and Answers (Sample Exam)
Book GUI - URLyBird