Is there any way to append text before text entry | XM Community
Skip to main content
Solved

Is there any way to append text before text entry


Forum|alt.badge.img

Is there any way to append text before text entry. Please let me know how to do it because i am new in qualtrics. and i am not so familiar in javascript or jquery.....

Best answer by SurajK

If you want to add the text for first box then use eq(0) and for second use eq(1), like below,
jQuery('input[type="text"]').eq(0).before('Your text ')
for second,
jQuery('input[type="text"]').eq(1).before('Your text ')

View original

4 replies

SurajK
QPN Level 3 ●●●
Forum|alt.badge.img+4
  • QPN Level 3 ●●●
  • 181 replies
  • August 11, 2020

Try this one,
jQuery('input[type="text"]').before('Your text')


Forum|alt.badge.img

Hi SurajK
First of all thanks for your reply but i used this code the text is appending to all questions refer below screenshot.....
image.png


SurajK
QPN Level 3 ●●●
Forum|alt.badge.img+4
  • QPN Level 3 ●●●
  • 181 replies
  • Answer
  • August 12, 2020

If you want to add the text for first box then use eq(0) and for second use eq(1), like below,
jQuery('input[type="text"]').eq(0).before('Your text ')
for second,
jQuery('input[type="text"]').eq(1).before('Your text ')


Forum|alt.badge.img

SurajK Thanks it works........😊


Leave a Reply