Hello,
I have a multiple choice question in my survey with three choices, where I would like to show additional information when the survey taker clicks on the information button. I've been able to add the required buttons to all three choices. However, the text I want to display when the info button is clicked is only showing up under the first choice. I'm using the same code for the second choice, just a different text, but it is not displaying when the info button is clicked.
I have added JS to the question and used this: jQuery("#button").click(function() {
jQuery("#infodiv").toggle();
});
The HTML I have used that works for the first choice is: a domestic applicant
KatjaT
It is because you are using the same Id of button change the button id and infodiv id for choice 2 and 3.
a domestic applicant
https://community.qualtrics.com/XMcommunity/discussion/comment/51746#Comment_51746Hello Deepak , thanks so much for your reply. I'm still fairly new to HTML and Java, and I've been trying around with it to get it to work. What would I need to change the button ID and the infodiv ID to?
https://community.qualtrics.com/XMcommunity/discussion/comment/51931#Comment_51931Please ignore my question. I have been able to work it out. I simply needed to change the button ID and infodiv ID and add the numbers 2 and 3 for the second and third question.
KatjaT
Glad you could make it work!
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.