Side navigation
#776 closed bug (fixed)
Opened January 10, 2007 11:14PM UTC
Closed January 11, 2007 04:55AM UTC
.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.
Sorry, I mistyped:
.text returns only the TEXT of the first element matched, not the element itself :)