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

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

  • 11 February 2019
  • 4 replies
  • 407 views

Badge +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.
icon

Best answer by Anonymous 11 February 2019, 20:20

View original

4 replies

Hello @GSSCEAGAppManBD ,

Use the below code:

`jQuery("#"+this.questionId+" select option:first-child").remove();`
Badge +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
Userlevel 7
Badge +23
I have a question about this. Will this option be marked as selected if the person will not actually answer this question?
Badge

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.

Leave a Reply