I need to get only the 2nd from last digit from the ui.value on a slider.
Here is how I can get the last digit:
var $lastNumber = ui.value % 10;
This is the actual code I am working with:
activeBackground_2 = 'url(images/numbers/20'+ui.value % 10+'.png)';
How would I get the 2nd from last digit ONLY? Not everything after the 2nd digit, rather only that specific digit.
Maybe: