Using textboxes for a quiz

I was thinking of javascript that allowed for more than one correct answer to the quiz questions, like in this snippet:


if(answer1 == 'an acceptable answer || answer1 == 'another acceptable answer') {
 //here I'd like to say something like: img.src = "http://www.littletherese.com/tick.jpg"
     }

The above image refers to a “correct tick” after the question.