Skip to content

Array access doesn't seem to work? #17

@robdodson

Description

@robdodson

var $headers = jQuery('header a');
var $first = $($headers[0]);
console.log($headers.text()); // logs a bunch of header text
console.log($first.text()); // freezes but doesn't throw an error

maybe I'm doing something wrong? All of the examples use each but I was wondering if it's possible to just use the regular Array access.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions