I have a link with a text, a linebreak
and a image inside.
<a title="title" href="#" class="mail">[email protected]
<br><img src="img/icons/icon.png">
</a>
So to get all together inside the anchor I use:
$('.mail').html();
Now I want to exclude this only to get [email protected]:
<br><img src="img/icons/icon.png">
Example
$('.mail').html();
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<a title="title" href="#" class="mail">[email protected]
<br><img src="img/icons/icon.png">
</a>
How should I do this?