Training Guide: Programming in HTML5 with JavaScript and CSS3 Ebook

(Nora) #1

286 CHAPTER 6 Essential JavaScript and jQuery


■■Forms Methods that provide functionality when working with form controls
■■Offset Methods for positioning DOM elements
■■Selectors Methods that provide the ability to access DOM elements by using CSS
selectors
■■Traversing Methods that provide the ability to traverse the DOM
■■Utilities Utility methods
This lesson only scratches the surface of jQuery’s capabilities, but subsequent lessons use
jQuery whenever possible.

Getting started with jQuery


To get started with jQuery, add the jQuery library to your project. In this example, the QUnit
testing framework has already been added to an empty web project, and it will demonstrate
jQuery capabilities. You can add jQuery by either downloading the library from http://jQuery
.com or adding the library from NuGet. To add it from NuGet, open your project and, in the
Project menu, click Manage NuGet Packages. In the Search Online text box, type jQuery and
press Enter. You should see a screen that is similar to that shown in Figure 6-9.

FIGURE 6-9 he NuGet package managerT
Free download pdf