Chapter 1. Getting Started with jQuery

The motto of jQuery is write less, do more. And by using the jQuery library, you can get started doing exactly that with nothing more than your favorite text editor.

This chapter starts with a hello world–like recipe to cover the basics, it discusses the fundamentals of the $ function and how to prevent conflicts with other libraries.

To ensure that your own code is just as concise as that of jQuery, the library offers a set of helper functions. This chapter covers the most important functions, which are designed to help you to eliminate useless boilerplate code or perform common tasks efficiently. You will see many of these functions being used in the following chapters.

Recipe: Introducing the Basic Usage ...

Get jQuery, jQuery UI, and jQuery Mobile: Recipes and Examples 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.