On my page I have an image with 10 drop down boxes next to specific organs within the image. Each drop down has the same 10 answers but only one is correct per item that it points to. Is there a way to add a value and have a button to calculate how many answers were correct?
This is for educational/study purposes, if you can help you will be helping A&P students at the Manchester Community College. Thank you!
Combo box items
The export value for each wrong answer has to be unique, so that's why they each have a number suffix.
Now, in the button's Mouse Up event you could check the value of each of the combo boxes and count up how many are correct. The JavaScript code might look like:
This code assumes you've named your combo boxes "combo.0", "combo.1", ..., "combo.9". It is also fairly bare-bones, and does not take into account items that have not been answered, but I hope you'll get the general idea of how this can be done. If you have more questions, post again.
George