Hiding the next button using css for only a particular div class? | XM Community
Skip to main content
Solved

Hiding the next button using css for only a particular div class?

  • May 12, 2022
  • 1 reply
  • 437 views

Forum|alt.badge.img+1

Hello,
I need to hide the "next button" in one question but without using javascript feature. I am thinking to use CSS to hide the button.
I can declare the whole intended question under the div with say class = "case-xyz". Something like this in the HTML pane.

My question in HTML format

But now when I want to define the custom css for "case-xyz", I am trying something like-
.case-xyz #NextButton{display: none;} OR
#NextButton .case-xyz{display:none}
but it's not working and I am not sure how to combine class and id selector here.
How to select the next button for a question defined under certain div with a class?

Best answer by Tom_1842

Hi there, you can hide the next button by adding the below to the question's HTML via the Rich Content Editor:

1 reply

Tom_1842
Level 8 ●●●●●●●●
Forum|alt.badge.img+28
  • Level 8 ●●●●●●●●
  • Answer
  • May 13, 2022

Hi there, you can hide the next button by adding the below to the question's HTML via the Rich Content Editor: