How to remove the First Blank choices in drop down from drill down Questions? | XM Community
Skip to main content
Solved

How to remove the First Blank choices in drop down from drill down Questions?

  • February 11, 2019
  • 4 replies
  • 670 views

Forum|alt.badge.img+3
is there any way by which we can hide the first blank choice in drop down of drill down question? jQuery("#"+this.questionId+" select option:first-child").prop({"disabled":true,"hidden":true}); above line can remove only first choice blank space in drop down.

Best answer by Anonymous

Hello @GSSCEAGAppManBD , Use the below code: `jQuery("#"+this.questionId+" select option:first-child").remove();`

4 replies

  • Answer
  • February 11, 2019
Hello @GSSCEAGAppManBD , Use the below code: `jQuery("#"+this.questionId+" select option:first-child").remove();`

Forum|alt.badge.img+3
@Shashi , Your answer will remove the blank choice from first drop down of drill down question not for subsequent drop downs. ! As shown in image

MsIreen
Level 5 ●●●●●
Forum|alt.badge.img+23
  • Level 5 ●●●●●
  • February 12, 2019
I have a question about this. Will this option be marked as selected if the person will not actually answer this question?

Forum|alt.badge.img
  • June 23, 2022

Hi I would also like to know how to do this. The above code works for just the first option but if I select a new one the blank appears again.