Hide and show next questions in javascript | XM Community
Solved

Hide and show next questions in javascript


I have several questions in one block. The first one is text type. I use javascript to edit it as a chat box and mimic a conversation. Meanwhile I want to ask people questions during this chat, for example, the second and third questions in this block will show after the messages in chatbox are displayed. What are the javascript functions I can use to hide/show the questions in the first text question's javascript? Thanks

icon

Best answer by cm201623 31 May 2021, 13:22

View original

2 replies

Why doesn't this code work?
jQuery(questionid="QID114").hide();

https://www.qualtrics.com/community/discussion/comment/37903#Comment_37903i use this instead, and it works
jQuery("#QID114").hide();

Leave a Reply