O'Reilly logo

jQuery in Action by Yehuda Katz, Bear Bibeault

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Extending jQuery with custom plugins

This chapter covers

  • Why to extend jQuery with custom code
  • The rules for effectively extending jQuery
  • Writing custom utility functions
  • Writing custom wrapper methods

Over the course of the previous chapters, we’ve seen that jQuery gives us a large toolset of useful commands and functions; we’ve also seen that we can easily tie these tools together to give our pages whatever behavior we choose. Sometimes that code follows common patterns we want to use again and again. When such patterns emerge, it makes sense to capture these repeated operations as reusable tools that we can add to our original toolset. In this chapter, we explore how to capture these reusable fragments of code as extensions to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required