O'Reilly logo

jQuery 2 Recipes: A Problem-Solution Approach by Arun K. Pande

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 2

image

jQuery Fundamentals

This chapter covers the fundamentals of the jQuery library, including the following topics:

  • How to access jQuery library functionalities
  • Using conditional statements
  • Looping
  • The structure of the Document Object Model (DOM)
  • Commonly used objects in the jQuery library
  • jQuery functions
  • Method chaining

2-1. Setting Up jQuery

As with any other JavaScript library, if you want to access functionalities of the jQuery library, you need to include the jQuery JavaScript file. There are two ways to include the jQuery JavaScript library in an HTML file:

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