node-scraper icon indicating copy to clipboard operation
node-scraper copied to clipboard

Array access doesn't seem to work?

Open robdodson opened this issue 12 years ago • 0 comments

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.

robdodson avatar Sep 07 '12 23:09 robdodson