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

Is there any way to append text before text entry

  • Aug 11, 2020 3:15 PM UTC
  • 4 replies
  • 80 views

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 ●●●
  • Aug 11, 2020 3:40 PM UTC

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 ●●●
  • Answer
  • Aug 12, 2020 2:46 PM UTC

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........😊