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() {
        // tes instruction addText2 ici !!!
        
        $(this).off('click').removeAttr('href');
        return false;        
    });        

})(jQuery);