Skip to content

text() as a getter returns all not only the first element as suggested by the first paragraph #655

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
zeasratwde opened this issue Jun 2, 2015 · 7 comments

Comments

@zeasratwde
Copy link

No description provided.

@arthurvr
Copy link
Member

arthurvr commented Jun 2, 2015

First paragraph on which page?

@zeasratwde
Copy link
Author

the frist paragraph in this page http://learn.jquery.com/using-jquery-core/working-with-selections/

@AurelioDeRosa
Copy link
Member

@zeasratwde in the specified page there isn't a reference to text(). Can you please double check?

@arthurvr
Copy link
Member

arthurvr commented Jun 6, 2015

@AurelioDeRosa There actually is a sentence we can clarify:

Getters get the requested value only for the first element in the selection.

@AurelioDeRosa
Copy link
Member

@arthurvr I didn't say there is nothing to improve. I pointed out that the page doesn't discuss the text() method.

@arthurvr
Copy link
Member

arthurvr commented Jun 6, 2015

If the page mentions "getters" that points to text() as well ;)

@zeasratwde
Copy link
Author

I couldn't stop reading the tutorial. What an excellent find? Great work!

lady3bean added a commit to lady3bean/learn.jquery.com that referenced this issue Jun 8, 2015
lady3bean added a commit to lady3bean/learn.jquery.com that referenced this issue Jun 8, 2015
lady3bean added a commit to lady3bean/learn.jquery.com that referenced this issue Jun 8, 2015
@gnarf gnarf closed this as completed in 5eaa312 Jun 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants