JSFiddle - React, Tailwind, and code Playground

HTML

<a href="#">See All</a>

<a href="#">See All 2</a>

JavaScript

$("a").filter(function() {
    alert($(this).text());
}).click(function() {
    alert('hello')
})