Span text or symbol after a specific textbox in a side by side question | XM Community
Skip to main content
Solved

Span text or symbol after a specific textbox in a side by side question

  • December 4, 2024
  • 1 reply
  • 38 views

Forum|alt.badge.img+1

I want to span text or symbol after a specific textbox in a side by side question.

I used the following js codes but it’s not working. I’m guessing the id name for the textbox isn’t correct.

 

jQuery(".QR-QID1#2-3-1-TEXT").after("<span>%</span>")

jQuery(".QR~QID1#2~3~1~TEXT").after("<span>%</span>")

 

Best answer by jbk

var qid = this.questionId;
$('QR~'+qid+'#2~3~1~TEXT').after(' %');

View original

1 reply

  • Level 4 ●●●●
  • 204 replies
  • Answer
  • December 4, 2024

var qid = this.questionId;
$('QR~'+qid+'#2~3~1~TEXT').after(' %');


Leave a Reply