{
  "doc": {
    "id": "api/utilities/$",
    "title": "Cypress.$ | Cypress Documentation",
    "description": "Cypress automatically includes jQuery and exposes it as Cypress.$.",
    "section": "api",
    "source_path": "/llm/markdown/api/utilities/$.md",
    "version": "e6988a974973e9090ce70406c38cb2b9e0eac9fa",
    "updated_at": "2026-05-15T15:50:22.536Z",
    "headings": [
      {
        "id": "api/utilities/$#cypress",
        "text": "Cypress.$",
        "level": 1
      },
      {
        "id": "api/utilities/$#syntax",
        "text": "Syntax",
        "level": 2
      },
      {
        "id": "api/utilities/$#usage",
        "text": "Usage",
        "level": 3
      },
      {
        "id": "api/utilities/$#examples",
        "text": "Examples",
        "level": 2
      },
      {
        "id": "api/utilities/$#selector",
        "text": "Selector",
        "level": 3
      },
      {
        "id": "api/utilities/$#notes",
        "text": "Notes",
        "level": 2
      },
      {
        "id": "api/utilities/$#cypress-vs-cy",
        "text": "Cypress.$ vs. cy.$$",
        "level": 3
      },
      {
        "id": "api/utilities/$#see-also",
        "text": "See also",
        "level": 2
      }
    ]
  },
  "chunks": [
    {
      "id": "api/utilities/$#notes",
      "doc_id": "api/utilities/$",
      "heading": "Notes",
      "heading_level": 2,
      "content_markdown": "## Notes\n\n### Cypress.$ vs. cy.$$\n\nYou can also query DOM elements with `cy.$$`. But `Cypress.$` and `cy.$$` are different.\n\n`Cypress.$` refers to the `jQuery` function itself. You can do anything with `Cypress.$` if you can do it with the `jQuery` function. So, both of the examples below work.\n\n```\nCypress.$.each([1, 2, 3], (index, value) => {  expect(index).to.eq(value)}) // works\n```\n\n```\n$.each([1, 2, 3], (index, value) => {  expect(index).to.eq(value)}) // also works\n```\n\nBut `cy.$$` is a wrapper of the `jQuery.fn.init` function. In other words, you can only query DOM elements with `cy.$$`. Because of that, the jQuery utility functions like `jQuery.each`, `jQuery.grep` don't work with `cy.$$`.\n\n```\ncy.$$.each([1, 2, 3], (index, value) => {  expect(index).to.eq(value)}) // fails\n```\n",
      "section": "api",
      "anchors": [
        "notes"
      ],
      "path": "/llm/json/chunked/api/utilities/$.json",
      "token_estimate": 160
    },
    {
      "id": "api/utilities/$#cypress-vs-cy",
      "doc_id": "api/utilities/$",
      "heading": "Cypress.$ vs. cy.$$",
      "heading_level": 3,
      "content_markdown": "### Cypress.$ vs. cy.$$\n\nYou can also query DOM elements with `cy.$$`. But `Cypress.$` and `cy.$$` are different.\n\n`Cypress.$` refers to the `jQuery` function itself. You can do anything with `Cypress.$` if you can do it with the `jQuery` function. So, both of the examples below work.\n\n```\nCypress.$.each([1, 2, 3], (index, value) => {  expect(index).to.eq(value)}) // works\n```\n\n```\n$.each([1, 2, 3], (index, value) => {  expect(index).to.eq(value)}) // also works\n```\n\nBut `cy.$$` is a wrapper of the `jQuery.fn.init` function. In other words, you can only query DOM elements with `cy.$$`. Because of that, the jQuery utility functions like `jQuery.each`, `jQuery.grep` don't work with `cy.$$`.\n\n```\ncy.$$.each([1, 2, 3], (index, value) => {  expect(index).to.eq(value)}) // fails\n```\n",
      "section": "api",
      "anchors": [
        "cypress-vs-cy"
      ],
      "path": "/llm/json/chunked/api/utilities/$.json",
      "token_estimate": 157
    }
  ]
}