JSFiddle - React, Tailwind, and code Playground

by thierrymichel

HTML

<!doctype html>
<meta charset="UTF-8">
<title>Click-Unclick...</title>
<a href="#" id="monLien">Click-me!</a>

JavaScript

(function ($) {
  // do something on document ready
  // code here can use $ to reference jQuery
    $('#monLien').on('click', function() {
        $(this).off('click').removeAttr('href');
    });        

})(jQuery);