• jQuery
  • jQuery UI
  • jQuery Mobile
  • Sizzle
  • QUnit
  • Plugins
  • Contribute
    • CLA
    • Style Guides
    • Bug Triage
    • Code
    • Documentation
    • Web Sites
  • Events
  • Support
    • Learning Center
    • Chat
    • Stack Overflow
    • Report a bug
  • OpenJS Foundation
    • Join
    • Members
    • jQuery Team
    • Governance
    • Conduct
    • Projects

jQuery Learning Center

  • Home
  • About
  • Contributing
  • Style Guide
Posted in: Using jQuery Core

Frequently Asked Questions

  • How do I select an item using class or ID?
  • How do I select elements when I already have a DOM element?
  • How do I test whether an element has a particular class?
  • How do I test whether an element exists?
  • How do I determine the state of a toggled element?
  • How do I select an element by an ID that has characters used in CSS notation?
  • How do I disable/enable a form element?
  • How do I check/uncheck a checkbox input or radio button?
  • How do I get the text value of a selected option?
  • How do I replace text from the 3rd element of a list of 10 items?
  • How do I pull a native DOM element from a jQuery object?
Using jQuery's .index() Function
How do I select an item using class or ID?

Last Updated

  • August 4, 2023

Suggestions, Problems, Feedback?

Open an Issue or Submit a Pull Request on GitHub

Chapters

  • About jQuery
  • Using jQuery Core
    • Frequently Asked Questions
  • Events
  • Effects
  • Ajax
  • Plugins
  • Performance
  • Code Organization
    • Deferreds
  • jQuery UI
    • Widget Factory
    • Using jQuery UI
  • jQuery Mobile

Books

  • Learning jQuery 4th Edition by Karl Swedberg and Jonathan Chaffer Learning jQuery Fourth Edition Karl Swedberg and Jonathan Chaffer
  • jQuery in Action by Bear Bibeault, Yehuda Katz, and Aurelio De Rosa jQuery in Action Bear Bibeault, Yehuda Katz, and Aurelio De Rosa
  • jQuery Succinctly by Cody Lindley jQuery Succinctly Cody Lindley
  • Learning Center
  • Chat
  • Twitter
  • GitHub

Copyright 2025 OpenJS Foundation and jQuery contributors. All rights reserved. See jQuery License for more information. The OpenJS Foundation has registered trademarks and uses trademarks. For a list of trademarks of the OpenJS Foundation, please see our Trademark Policy and Trademark List. Trademarks and logos not indicated on the list of OpenJS Foundation trademarks are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them. OpenJS Foundation Terms of Use, Privacy, and Cookie Policies also apply.

Web hosting by Digital Ocean | CDN by Fastly | Powered by WordPress