Book Image

Instant jQuery Selectors

By : Aurelio De Rosa
Book Image

Instant jQuery Selectors

By: Aurelio De Rosa

Overview of this book

jQuery's selectors is one of the most important concepts of the jQuery library. Usually, the first thing you do is to select one or more elements of a page in order to manipulate them. Therefore, to efficiently learn the usage of jQuery's selectors is one of the first steps to successfully build your website. Instant jQuery Selectors is a practical guide that will teach you how to use jQuery's selectors efficiently in order to easily select theelements of your pages to operate upon with jQuery's methods. You will go through the most common problems that you could face while developing your project and will learn how to solve them with the help of focused examples that Instant jQuery Selectors has to offer. Instant jQuery Selectors, starting from how to set up jQuery and how to choose the right version for your project, explains to you all the selectors available using a multitude of simple and practical recipes that will help you start using selectors in the right way. Reading the presented recipes you'll learn about the numerous selectors and filters of jQuery – almost 100 of them! You will see how to reuse collections, the methods to filter collections, and how to take advantage of the lesser known parameter of jQuery's constructor: context. Also, you'll discover the methods to traverse the DOM and the techniques to improve the performance of your website by just tweaking selectors. Instant jQuery Selectors is the resource to learn everything you need to know about jQuery's selectors.
Table of Contents (7 chapters)

Chapter 1. Instant jQuery Selectors

Welcome to Instant jQuery Selectors. jQuery is a popular JavaScript library, created by John Resig, designed to simplify the client side scripting of HTML. This book will introduce you to the available selectors of this framework. Through the use of examples, you'll be able to start using selectors efficiently and easily to solve your day-to-day problems.

The structure of this book is conceived to help you through the learning process. In fact, the initial recipes will give you an overview of the basic topics, showing you the most commonly used selectors. Conversely, the later recipes will show you how to become a pro by describing more advanced topics such as, creating your own selectors and how to improve the performance of your scripts by just paying attention on how to select elements.