-
Getting 1 character of a string of numbers
I got this price from a .json, so now the slider is giving me 6, which is good. But i rather have something where i can put in the price, for example 570, and tell the second slider to get this price and show only the 7. Is this possible with splitting or something?
Thank you
eval("var data=" + footage("data.json").sourceText);hoogte = (data.jpstand1);
//JSON:
"jpstand1": "6",
"jpstand2": "0",
"jpstand3": "0",
"jpstand4": "0",
"jpstand5": "0",
"jpstand6": "0",
"jpstand7": "0",
"jpstand8": "0",