JSFiddle - React, Tailwind, and code Playground

by rwaldron

HTML

<a href="mailto:foo@bar.com">email link</a>
<a href="http://google.com">google.com</a>
<a href="http://google.com">google.com</a>
<a href="http://google.com">google.com</a>

CSS

a{display:block}

JavaScript

console.log( [
    $('[href^="mailto"]'),
    $('a:not([href^="mailto"])')

])