I’m having trouble to get a font increase/decrease jquery function done. It has 3 sizes: large, medium (default one) and small. Issue here is theres no “reset” button as it on many examples on the web, instead just two buttons to increase or decrease the font size.
The problem came up when I change to larger font and I want to drecrease to the middle one. It doesnt go back to middle, it changes to the smaller value or backwards (smaller to larger). Is there any way to accomplish this? I’ll appreciate any help you can give me, thanks
Here’s what I use:
And in the HTML (in this case, i use Increase, Decrease and Reset) but you can set to custom fonts.
Here’s the JSFiddle