JSFiddle - React, Tailwind, and code Playground

by richardneililagan

HTML

<a id='valid' href='http://google.com' target='_blank'>Go to Google!</a>
<a id='invalid' href='http://google.com' target='_blank'>Go to Google!</a>

JavaScript

jQuery(function($) {
    
    $('a#invalid').click(function(e) {
        
        // stop the click through
        e.preventDefault();
        
    });
    
});