Adding diff. Symbols after/before each text boxes | XM Community

Adding diff. Symbols after/before each text boxes

  • 3 October 2022
  • 2 replies
  • 38 views

Userlevel 1
Badge +2

Hi, Is there a way to add another symbol without affecting/changing the other text boxes within a question? I want to put a Percentage Symbol after the 1st text box, without affecting the 2nd box equipped with dollar sign.
I used the code I found from the other post.
jQuery("#"+this.questionId+" .InputText").css("width","96%").before("$ ");


2 replies

Userlevel 7
Badge +27

Change the selector. For example:
jQuery("#"+this.questionId+" .SBS3 .InputText").css("width","96%").after("%");
jQuery("#"+this.questionId+" .SBS4 .InputText").css("width","96%").before("$ ");

Userlevel 4
Badge +16

TomG Thank you for your expertise and sharing this custom code solution! And, thank you robi_kalinisan for confirming that the solution works 🙂

Leave a Reply