Book Image

PhoneGap Beginners Guide (third edition)

Book Image

PhoneGap Beginners Guide (third edition)

Overview of this book

Table of Contents (22 chapters)
PhoneGap Beginner's Guide Third Edition
Credits
Foreword
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Related Plugin Resources
Index

Selectors using jQuery


If you are using jQuery in your project, you must know how easy it is to use selectors with jQuery. It provides convenient methods to select elements instead of using multiple JavaScript functions:

  • $("p"): This selects element by tag name

  • $("#myID"): This selects element based on the id attribute

  • $(".myClass"): This selects element based on the class attribute

For more details on advanced jQuery selectors, visit http://www.w3schools.com/jquery/jquery_selectors.asp.