This week's book giveaway is in the Other Languages forum. We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line! See this thread for details.
I want my options and answers in my table row to match the functionality (Jsfiddle)?
posted 4 years ago
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.