Increase and Decrease font size using jQuery
This tutorial explains how to increase and decrease font size of text content in a div dynamically using jquery.
Open notepad, add below code and save it as an html file.
Initially when the page loads, the font size is set to 14px. Then as the user clicks on increase or decrease links font size is increased or decreased by 2 units dynamically by using .css() method. Note that we have set an higher limit of 20px and lower limit of 14px for the text content. Check out the demo to see how it works.
If you think this article and other information on this website is useful to you, please keep yourself subscribed via email or other social networking sites to be notified whenever more useful articles are posted here. Thanks for reading!