Hide and show next questions in javascript | XM Community
Skip to main content
Solved

Hide and show next questions in javascript

  • May 31, 2021
  • 2 replies
  • 79 views

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

Best answer by cm201623

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

2 replies

  • Author
  • May 31, 2021

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


  • Author
  • Answer
  • May 31, 2021

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