Solved
Add Comma to Slider Label
Hi everyone,
I have a slider with labels on top indicating dollar values. How do I add a comma to separate each 000? The label current look like "1000" - how do I turn that into "1,000"?
Best answer by Anonymous
Hello @1ag0 ,
Paste the below code in the js(OnReady) of the question:
var s=["$0","$2,000","$4,000","$6,000","$8,000"];
for(var i=0;i<s.length;i++){
jQuery(".TickContainer span:eq("+i+")").html(s[i]);
}
View originalLeave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.