Question text to the left of drop down box | XM Community
Skip to main content
Solved

Question text to the left of drop down box

  • March 5, 2020
  • 2 replies
  • 52 views

Forum|alt.badge.img+1
Is anyone able to provide code to add text before/next to (ie. to the left of) a drop down box?

Best answer by PraDeepKotian_XM

Hi @bobti_2 , please add the below code in your question javascript onload sections: var id=this.questionId; jQuery("#"+id).find("Select").after(" asas");

2 replies

PraDeepKotian_XM
QPN Level 5 ●●●●●
Forum|alt.badge.img+21
  • QPN Level 5 ●●●●●
  • Answer
  • March 6, 2020
Hi @bobti_2 , please add the below code in your question javascript onload sections: var id=this.questionId; jQuery("#"+id).find("Select").after(" asas");

Forum|alt.badge.img+1
  • Author
  • March 8, 2020
Thanks @PraDeepKotian_Ugam I modified it to "before" rather than "after" for my purposes, and it's working perfectly. Thank you for your help!