JSFiddle - React, Tailwind, and code Playground

by trevor_davis

HTML

<a href="#some-link">A link</a>
<a href="#another">Another</a>
<a href="#a-third" class="link-tab">A third</a>

JavaScript

console.log($('a[href^="#"]'));
console.log($('a[href^="#"]:not(.link-tab)'));