jQuery Properties

Index
About This Index
This page is the jQuery Properties index for the tutorial track. Each row links to a full guide with syntax, examples, and FAQs.
Learn the jQuery overview on /jquery. Use this page when you need a collection property such as .length, .jquery, or .context.
Beginner path.
Start with .length, then .jquery—read .context and .selector only when maintaining pre–jQuery 3 code.
Syntax
How to Read a Property
Access properties without parentheses — they are fields, not methods:
jQuery
var $items = $("li");
$items.length; // how many matched
$items.jquery; // e.g. "3.7.1"
$.fn.jquery; // same version via the prototype
if ($items.length) {
$items.first().addClass("ok");
}
// Removed in jQuery 3.0 — do not rely on these in new code:
// $items.context
// $items.selector Browse
jQuery Properties Table
All Properties guides in this jQuery tutorial series (4 tutorials).
Current Properties
2 methodsRead-only fields still available on modern jQuery collections.
Legacy Properties
2 methodsRemoved in jQuery 3.0 — keep for migration notes and older codebases.
Frequently Asked Questions
They are read-only fields on jQuery collections (or the jQuery namespace)—you access them without parentheses. Examples: .length for match count and .jquery for the version string.
Methods are functions you call: $('p').hide(). Properties are values you read: $('p').length returns a number. Do not write .length().
.context and .selector were removed. The second argument to jQuery(selector, context) still scopes a search; you just cannot read .context back from the collection.
Use .length. .size() was a method alias and was removed—length is the supported match count on every collection.
Start with .length, then .jquery. Read .context and .selector only when maintaining pre–jQuery 3 code.
Start with .length
Open the length guide—syntax, examples, and FAQs.
16 people found this page helpful
