jQuery Core
What You’ll Learn
jQuery Core is where every chain begins. The jQuery() / $() factory selects elements, creates HTML, wraps DOM nodes, and registers ready handlers. This hub indexes 5 Core tutorials with full examples and try-it labs.
jQuery()
Factory
$()
Alias
Select
Find nodes
Create
HTML
Ready
$(fn)
Since 1.0
Foundation
Introduction
The official jQuery documentation groups foundational APIs under Core. The star of that category is jQuery() — one function with many useful forms.
The Core category starts with jQuery() (alias $()) — the factory that returns every jQuery collection. Pass a CSS selector to find elements, an HTML string to create them, a DOM node to wrap, or a function to run when the document is ready.
Sibling Core topics live in other CodeToFun sections when they fit better pedagogically: .ready(), jQuery.noConflict(), and .jquery.
👀 Four Ways to Call $()
The same function adapts to what you pass:
Core Tutorial Index
Search by API name or browse by category. Each tutorial includes syntax, five try-it examples, and FAQs.
Factory Function
1 tutorialThe entry point to every jQuery program — select, create, wrap, or wait for the DOM.
Document Ready
3 tutorialsRun code when the DOM is safe, pause ready for loaders, and handle ready-handler errors.
| API | Description | Tutorial |
|---|---|---|
.ready() | Run a callback when the DOM is loaded — recommended $(fn) shorthand since 3.0, compare with window load and jQuery.ready thenable. | Open |
jQuery.holdReady() | Hold or release jQuery's ready event — delay init until dynamic scripts load since 1.6, deprecated in 3.2, prefer $.when($.ready, promise). | Open |
jQuery.readyException() | Handle errors thrown synchronously inside ready handlers — default setTimeout rethrow since 3.1, override for logging. | Open |
Globals & Aliases
1 tutorialShare the page with other libraries that also want $.
| API | Description | Tutorial |
|---|---|---|
jQuery.noConflict() | Release the $ alias (and optionally the jQuery name) back to other libraries — keep using jQuery by name or a custom alias. | Open |
❓ Frequently Asked Questions
Start with jQuery()
Learn the factory forms — select, create, wrap, and ready.
8 people found this page helpful
