Placeholder Text (Creating Survey) | Experience Community
Skip to main content
Solved

Placeholder Text (Creating Survey)

  • Aug 4, 2020 8:25 PM UTC
  • 1 reply
  • 568 views

Forum|alt.badge.img

Hi Guys,
When creating a survey has anyone created a placeholder text using java script. I know we have a feature called form we can use but the text is placed outside.

Thanks

Best answer by rondev

Use this code:
jQuery("#"+this.questionId+ " .InputText").attr("placeholder","TXT GOES HERE");
Check this for more detailed answer.

View original

1 reply

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • Answer
  • Aug 4, 2020 8:55 PM UTC

Use this code:
jQuery("#"+this.questionId+ " .InputText").attr("placeholder","TXT GOES HERE");
Check this for more detailed answer.