Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@fntz
Copy link

@fntz fntz commented Oct 2, 2012

I added method that returns the text content of element.

For example:

  <div id="element">Lorem<span>ipsum</span> dolore</div> 

  $('element').content(); // returns text for element and nested elements
  //=> Lorem ipsum dolore
  $('element').content(true); // returns text only for element without nested elements. 
  //=> Lorem dolore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.