Opened 16 years ago
Closed 16 years ago
#776 closed bug (fixed)
.text() only returns the first element matched
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.1a |
Component: | core | Version: | 1.1a |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
$(SELECTOR).text() returns only the first element matched, rather than a concatenated string of text, as per the docs.
Would also be kinda cool if we could somehow optionally return all of the text into an array of strings, but that might be better as a new ticket.
Note: See
TracTickets for help on using
tickets.
Sorry, I mistyped: .text returns only the TEXT of the first element matched, not the element itself :)