Book Image

Learning jQuery : Better Interaction Design and Web Development with Simple JavaScript Techniques

Book Image

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

Summary


With the techniques that we have covered in this chapter, we should now be able to style top-level and sub-level items in a nested list by using CSS selectors, apply different styles to different types of links by using XPath attribute selectors, add rudimentary striping to a table by using the custom jQuery selectors :odd and :even, and highlight text within certain table cells by chaining jQuery methods.

So far, we have been using the $(document).ready() event to add a class to a matched set of elements. In the next chapter, we’ll explore ways in which to add a class in response to a variety of user-initiated events.