Is it possible to select text between
tags? I am working with the preformatted code below trying to select this data: New York, NY 10012
I've played around with $('#address').find('br').eq(2).text()
, but know that there must be a better way.
<div id="address">
Joe Dirt<br>
PO Box 842<br>
New York NY 10012<br>
800-555-5555<br>
<br>
</div>
Thanks!