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

Hide and show next questions in javascript

  • May 31, 2021 10:44 AM UTC
  • 2 replies
  • 129 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();

View original

2 replies

  • Author
  • May 31, 2021 11:14 AM UTC

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


  • Author
  • Answer
  • May 31, 2021 11:22 AM UTC

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