Discover millions of ebooks, audiobooks, and so much more with a free trial

Only $11.99/month after trial. Cancel anytime.

Instant jQuery Selectors
Instant jQuery Selectors
Instant jQuery Selectors
Ebook168 pages55 minutes

Instant jQuery Selectors

Rating: 0 out of 5 stars

()

Read preview

About this ebook

Filled with practical, step-by-step instructions and clear explanations for the most important and useful tasks. Instant jQuery Selectors follows a simple how-to format with recipes aimed at making you well versed with the wide range of selectors that jQuery has to offer through a myriad of examples. Instant jQuery Selectors is for web developers who want to delve into jQuery from its very starting point: selectors. Even if you're already familiar with the framework and its selectors, you could find several tips and tricks that you aren't aware of, especially about performance and how jQuery acts behind the scenes.
LanguageEnglish
Release dateAug 26, 2013
ISBN9781783282227
Instant jQuery Selectors
Author

Aurelio De Rosa

Aurelio De Rosa is a full-stack web and app developer who develops jQuery plugins and contributes to various open source projects including the jQuery API documentation.

Related authors

Related to Instant jQuery Selectors

Related ebooks

Internet & Web For You

View More

Related articles

Reviews for Instant jQuery Selectors

Rating: 0 out of 5 stars
0 ratings

0 ratings0 reviews

What did you think?

Tap to rate

Review must be at least 10 words

    Book preview

    Instant jQuery Selectors - Aurelio De Rosa

    Table of Contents

    Instant JQuery Selectors

    Credits

    About the Author

    About the Reviewer

    www.PacktPub.com

    Support files, eBooks, discount offers and more

    Why Subscribe?

    Free Access for Packt account holders

    Preface

    What this book covers

    What you need for this book

    Who this book is for

    Conventions

    Reader feedback

    Customer support

    Downloading the example code

    Errata

    Piracy

    Questions

    1. Instant jQuery Selectors

    Setting up jQuery (Must know)

    Getting ready

    How to do it...

    There's more...

    What version to use?

    Compressed or not?

    Using a CDN

    The All selector (Must know)

    How to do it...

    How it works...

    There's more...

    Alternatives to $(document).ready()

    Avoiding $(document).ready()

    css() and browsers support

    Selectors and browsers support

    Performance

    Selecting by ID (Must know)

    How to do it...

    How it works...

    There's more...

    Escaping special characters

    Storing a collection

    Selecting by class (Must know)

    How to do it...

    How it works...

    There's more...

    getElementsByClassName()

    Selecting elements having two or more classes

    Selecting by tag (Must know)

    How to do it...

    How it works...

    There's more...

    Selecting and using tag names with classes and IDs

    getElementsByTagName()

    Multiple selectors at once (Should know)

    How to do it...

    How it works...

    Selecting by hierarchy (Must know)

    Getting ready

    How to do it...

    How it works...

    Selecting by attributes (Should know)

    Getting ready

    How to do it...

    How it works...

    There's more...

    Multiple attribute selector

    Not equal selector

    Using filter() and attr()

    Selecting by position using filters (Should know)

    Getting ready

    How to do it...

    How it works...

    Selecting from elements using filters (Should know)

    Getting ready

    How to do it...

    How it works...

    Child filters (Should know)

    Getting ready

    How to do it...

    How it works...

    Other filters (Become an expert)

    Getting ready

    How to do it...

    How it works...

    Custom filters (Become an expert)

    How to do it...

    How it works...

    Context matters (Should know)

    How to do it...

    How it works...

    There's more...

    Improving performance re-using selected elements (Become an expert)

    How to do it...

    How it works...

    Methods to filter collections (Become an expert)

    Getting ready

    How to do it...

    How it works...

    Traversing DOM SubTrees (Become an expert)

    Getting ready

    How to do it...

    How to do it...

    How to have efficient selectors (Become an expert)

    How to do it...

    Instant jQuery Selectors


    Instant JQuery Selectors

    Copyright © 2013 Packt Publishing

    All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

    Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.

    Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

    First published: August 2013

    Production Reference: 1230813

    Published by Packt Publishing Ltd.

    Livery Place

    35 Livery Street

    Birmingham B3 2PB, UK.

    ISBN 978-1-78328-221-0

    www.packtpub.com

    Credits

    Author

    Aurelio De Rosa

    Reviewers

    Kent C. Dodds

    Acquisition Editor

    Nikhil Karkal

    Mary Jasmine Nadar

    Commissioning Editor

    Nikhil Chinnari

    Technical Editor

    Dipika Gaonkar

    Project Coordinator

    Esha Thakker

    Proofreader

    Joel T. Johnson

    Production Coordinator

    Adonia Jones

    Cover Work

    Adonia Jones

    Cover Image

    Abhinash Sahu

    About the Author

    Aurelio De Rosa is an Italian web and application developer with more than five years' experience in programming for web using HTML5, CSS3, JavaScript, and PHP. He mainly uses the LAMP stack and frameworks, such as jQuery, jQuery Mobile, and Cordova (PhoneGap). His interests also include web security, web accessibility, SEO, and WordPress.

    He is currently self-employed working with the cited technologies and is also a regular blogger for several networks (SitePoint, Tuts+, and FlippinAwesome), where he writes articles about the topics he usually works with and more.

    You can find more about him at his website http://www.audero.it.

    First of all, I'd like to thank my parents, Raffaele and Eufemia, because they gave me chance to study and follow this path that I've chosen, and for this I owe them. With all your sacrifices, you allowed me to have everything a person may need in his life. I also want to thank Annarita for teaching me the true meaning of the word love. With you my life is full of moments of joy and I hope we'll be together for the rest of our lives. I want to thank Francesco for always being there in the time of need and proving to me that lifetime friendship can really exist.

    About the Reviewer

    Kent C. Dodds is a young and upcoming front end developer. Kent is

    Enjoying the preview?
    Page 1 of 1