Thursday, 22 August 2013

Selecting non-tagged text in div

Selecting non-tagged text in div

I have a huge page with a lot of text not specifically tagged within a
text tag (h3, h1, p, whatever). So, stuff like this:
<div class="class">Here's some text that really should be in a p tag, but
oh well</div>
I would like to be able to select all this text at once using jQuery, but
I don't know how to select the text that isn't in a text-specific tag. Is
there some implied tag or something, so that I can go like $('text') and
call it a day?

No comments:

Post a Comment