nitinhayaran / jRange

jQuery plugin to create range selector

Home Page:http://nitinhayaran.github.io/jRange/demo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Formatting Label as Currency

daddyschmack opened this issue · comments

Nitin,

I was looking at the closed issues, and I found one that i think relates to me.. but I was unable to wrap my head around it.

#16

So I added the below comment and was hoping to bring it to your attention.

Thanks,

John


Hi Nitin,
I'm trying to wrap my head around this. I want to format my label values as dollars. So I'm trying this:

...
to: 100000000,
format:function(value, type){
console.log(value);
return type === 'low' ? formatDollars(value) + ' first slider' : value + ' second slider';
},
step: 1,
..
but it's not working..

Do you want something like this?

http://jsfiddle.net/Lngzuq5k/

yep, pretty much.. :-)
Thank you!! Where do I donate?