I would suggest making an json obj with elements for each question id that are their own obj with the answers per question. When user submits, have it cycle through each question element inserting the answers in your object.
answerObj = {
q1: {
a: 'answer'
},
q2: {
a: 'answer'
},
q3: {
a: 'answer'
}
...
}
You received this message because you are subscribed to the Google Groups "JavaScript Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javascript-information+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.