JSFiddle - React, Tailwind, and code Playground
HTML
<a class="sign_new" href="#sign_up">Sign up</a>
JavaScript
$(document).ready(function(){
$('a[href="#sign_up"]').click(function(){
alert('Sign new href executed.');
});
});
<a class="sign_new" href="#sign_up">Sign up</a>
$(document).ready(function(){
$('a[href="#sign_up"]').click(function(){
alert('Sign new href executed.');
});
});