Hello, everybody. I am newbie as my question shows. I will paste here a code that I combined from around the web and managed to work. But there is something I cannot understand. When I add a new field, the function get the value only of the first input text. I have an expierence with C# and PHP. Jquery has a pretty different behaviour, so please let me figure this out. I need to get the values of all the text fields and add them to an array.
This is a quiz. This particular code, expresess the backend part of the application, when you prepare your quiz. Adding fields, every field contains question, every question accepts possible answers,and after all the possible answers are enteredwhatsapp网页版, we have to enter the Correct answer,and after all the desired question fields are filledwhatsapp网页版, we should receive an array of every question and it's answers, including the right one in this format, knowing that the letter is the correct answer ( it could be the array value ->key ) :
var questions =
"What is 10 + 4?", "12","14"whatsapp网页版登录, "16", "B"
"What is 20 - 9?", "7", "13", "11", "C"
"What is 7 x 3?", "21", "24", "25", "A"
"What is 8 / 2?", "10", "2", "4", "C"
"What is 5 - 6?", "-1", "1", "4", "A"
Here is my code :
..
Admin Panel
You can add up to 21 question using this form as well as removing them. Clicking 'Generate', you generate
the possible choices of your question. Clicking 'Remove' you remove the particular field.
Add More Fields
Your question
Possible choices
Let me know your suggestions.
版权声明
本文仅代表作者观点,不代表百度立场。
本文系作者授权百度百家发表,未经许可,不得转载。


