In Chrome's developer console. I'm trying to grab a piece of text from a website.
Example:
<div class="someClass">This is some text!</div>
I expected this to work, but it returns 'undefined'
$('.someClass')[0].text
Yet that does work when the text is inside a tag with the same class. Is there something special occurring when the text is just inside a div? Thanks!