Example 1 — Read the Original String
Inspect .selector after a simple CSS selection (jQuery 1.12).
var $items = jQuery("div.item");
$("#out").text(
"length: " + $items.length + "\n" +
"selector: " + $items.selector
); How It Works
- Select. Pass a CSS string to
jQuery(). - Store. Legacy jQuery keeps that string on the set.
- Read.
.selectorechoes what you typed.

