Question about percentages in slider | XM Community
Skip to main content

Hi, I have a slider question in my survey where I want the respondent to estimate a threat with a .. % change of .... What is initially shown (without JavaScript) on the slider is just numbers from 0 to 100. To add % to the numbers, I checked out the community. I got some codes, but neither of them work in the right way.
If I use this code:
jQuery("#"+this.questionId+" .numbers li").each(function(){

jQuery(this).text((jQuery(this).text()+"%").trim().replace(" ",""));

});
I get two times the % symbol (0%%). How can I delete one? Or am I using the code in the wrong way?

The code is correct, please send the screenshot to see where you have pasted the code and how it looks,


Javascript.pngI hope you can read it!


Remove the code from OnReady and OnUnload functions.


That worked. Thank you so much.


Leave a Reply