I'm using jquery and have two arrays with the names, question0AnswerTextArray and question1AnswerTextArray.
Inside these arrays are strings ["text for answer 1", "text for answer 2"]
I also have a variable named quizQuestion.
I'm trying to get text to display like below:
var tempBoxText = 'question'+quizQuestion+'AnswerTextArray['+answerNumber+']';
$('#quizTextBox').text(tempBoxText);
Any ideas? Or are multidimensional arrays possible in JavaScript/jQuery?
Thanks for suggestions..I just started JavaScript recently.