JavaScript closures are a powerful language feature. They are often quite useful in hiding variables from other code, so that we don’t tread on variable names being used elsewhere. Due to jQuery’s frequent reliance on functions as method arguments, they can also be inadvertently created quite often. Understanding them allows us to write more efficient and concise code, and with a bit of care and the use of jQuery’s built-in safeguards we can avoid the memory-related pitfalls they can introduce.
Learning jQuery : Better Interaction Design and Web Development with Simple JavaScript Techniques
Learning jQuery : Better Interaction Design and Web Development with Simple JavaScript Techniques
Overview of this book
Table of Contents (18 chapters)
Learning jQuery
Credits
About the Authors
About the Reviewers
Preface
Free Chapter
Getting Started
Selectors—How to Get Anything You Want
Events—How to Pull the Trigger
Effects—How to Add Flair to Your Actions
DOM Manipulation—How to Change Your Page on Command
AJAX—How to Make Your Site Buzzword-Compliant
Table Manipulation
Forms with Function
Shufflers and Rotators
Plug-ins
Online Resources
Development Tools
Customer Reviews