JSFiddle - React, Tailwind, and code Playground
HTML
<a href="google.com">Google</a>
<a href="yahoo.com">Yahoo</a>
<a href="reddit.com" class="norm">Reddit, this link won't process</a>
JavaScript
$(document).ready(function () {
$("a").not(".norm").on("click", function(e) {
alert($(this).attr('href'));
// The alert just demonstrates that it's working and how to get href.
// You can call your ajax here.
e.preventDefault();
});
});