Instant jQuery Selectors
()
About this ebook
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 to Instant jQuery Selectors
Related ebooks
Cucumber Cookbook Rating: 0 out of 5 stars0 ratingsINSTANT Fancybox Rating: 0 out of 5 stars0 ratingsInstant jQuery Masonry How-to Rating: 0 out of 5 stars0 ratingsInstant Jsoup How-to Rating: 0 out of 5 stars0 ratingsJavaScript Projects for Kids Rating: 0 out of 5 stars0 ratingsClojure Data Structures and Algorithms Cookbook Rating: 0 out of 5 stars0 ratingsInstant Wijmo Widgets How-to Rating: 0 out of 5 stars0 ratingsWeb Development with Jade Rating: 0 out of 5 stars0 ratingsGetting Started with React Native Rating: 4 out of 5 stars4/5Build Gamified Websites with PHP and jQuery Rating: 0 out of 5 stars0 ratingsInstant Galleria How-to Rating: 0 out of 5 stars0 ratingsGetting Started with PhantomJS Rating: 0 out of 5 stars0 ratingsInstant Hands-on Testing with PHPUnit How-to Rating: 0 out of 5 stars0 ratingsMootools 1.2 Beginners Guide LITE: Getting started Rating: 0 out of 5 stars0 ratingsjQuery Mobile Web Development Essentials - Third Edition Rating: 0 out of 5 stars0 ratingsWildFly: New Features Rating: 0 out of 5 stars0 ratingsBuilding Web Applications with Flask Rating: 0 out of 5 stars0 ratingsWeb App Testing Using Knockout.JS Rating: 0 out of 5 stars0 ratingsInstant Java Password and Authentication Security Rating: 0 out of 5 stars0 ratingsINSTANT JQuery Flot Visual Data Analysis Rating: 0 out of 5 stars0 ratingsInstant HTML5 Responsive Table Design How-to Rating: 0 out of 5 stars0 ratingsLearning Swift Rating: 5 out of 5 stars5/5Meteor Design Patterns Rating: 0 out of 5 stars0 ratingsInstant .NET 4.5 Extension Methods How-to Rating: 0 out of 5 stars0 ratingsLo-Dash Essentials Rating: 0 out of 5 stars0 ratingsOpenCart Theme and Module Development Rating: 0 out of 5 stars0 ratingsBuilding a Web Application with PHP and MariaDB: A Reference Guide Rating: 0 out of 5 stars0 ratingsDeveloping Windows Store Apps with HTML5 and JavaScript Rating: 0 out of 5 stars0 ratingsInstant Apache Stanbol Rating: 0 out of 5 stars0 ratingsInstant HTML5 Geolocation How-To Rating: 0 out of 5 stars0 ratings
Internet & Web For You
Coding All-in-One For Dummies Rating: 4 out of 5 stars4/5Coding For Dummies Rating: 5 out of 5 stars5/5More Porn - Faster!: 50 Tips & Tools for Faster and More Efficient Porn Browsing Rating: 3 out of 5 stars3/5Introduction to Internet Scams and Fraud: Credit Card Theft, Work-At-Home Scams and Lottery Scams Rating: 4 out of 5 stars4/5Hacking : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Ethical Hacking Rating: 5 out of 5 stars5/5The $1,000,000 Web Designer Guide: A Practical Guide for Wealth and Freedom as an Online Freelancer Rating: 5 out of 5 stars5/5The Logo Brainstorm Book: A Comprehensive Guide for Exploring Design Directions Rating: 4 out of 5 stars4/5SEO For Dummies Rating: 4 out of 5 stars4/5Cybersecurity For Dummies Rating: 4 out of 5 stars4/5Beginner's Guide To Starting An Etsy Print-On-Demand Shop Rating: 0 out of 5 stars0 ratingsTor and the Dark Art of Anonymity Rating: 5 out of 5 stars5/5How To Make Money Blogging: How I Replaced My Day-Job With My Blog and How You Can Start A Blog Today Rating: 4 out of 5 stars4/5Wireless Hacking 101 Rating: 4 out of 5 stars4/5The Digital Marketing Handbook: A Step-By-Step Guide to Creating Websites That Sell Rating: 5 out of 5 stars5/5Everybody Lies: Big Data, New Data, and What the Internet Can Tell Us About Who We Really Are Rating: 4 out of 5 stars4/5Grokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5200+ Ways to Protect Your Privacy: Simple Ways to Prevent Hacks and Protect Your Privacy--On and Offline Rating: 0 out of 5 stars0 ratingsThe Cyber Attack Survival Manual: Tools for Surviving Everything from Identity Theft to the Digital Apocalypse Rating: 0 out of 5 stars0 ratingsSix Figure Blogging Blueprint Rating: 5 out of 5 stars5/5The Beginner's Affiliate Marketing Blueprint Rating: 4 out of 5 stars4/5Social Engineering: The Science of Human Hacking Rating: 3 out of 5 stars3/5How To Start A Podcast Rating: 4 out of 5 stars4/5The Internet Is Not What You Think It Is: A History, a Philosophy, a Warning Rating: 4 out of 5 stars4/5Podcasting For Dummies Rating: 4 out of 5 stars4/5How to Be Invisible: Protect Your Home, Your Children, Your Assets, and Your Life Rating: 4 out of 5 stars4/5
Reviews for Instant jQuery Selectors
0 ratings0 reviews
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