Use jQuery to select text not in an element

Viewed 4906

Say i have this:

<div class='myDiv'>
    <p>hello</p>
    hello
    <p>Hello</p>
</div>

How does one grab the text hello between the two P tags using jQuery?

2 Answers
Related