© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
B. HarwanijQuery Recipeshttps://doi.org/10.1007/978-1-4842-7304-3_11

11. Creating and Using jQuery Plugins

Bintu Harwani1  
(1)
Ajmer, Rajasthan, India
 
jQuery plugins make functions portable and easy to integrate with any number of projects, hence implementing reusability. In this chapter, you learn to create jQuery plugins from scratch and how to use some popular jQuery plugins. You learn how to do the following with the recipes in this chapter.
  • Create a plugin that changes the font size, font style, and foreground and background color of an element, and make the plugin chainable

  • Enable passing customization options to a plugin

  • Modify content using a plugin

Get jQuery Recipes: Find Ready-Made Solutions to All Your jQuery Problems now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.