JSFiddle - React, Tailwind, and code Playground
HTML
<a class="lienDynamique" href="http://www.developpez.net/forums/">Lien ne fonctionne pas</a>
<br />
<a href="http://www.developpez.net/forums/" target="_blank">Lien fonctionne</a>
JavaScript
(function ($) {
$.fn.chargementDynamique = function() {
console.log("Test Plugin - Chargement Dynamique");
this.bind("click", function(event) {
console.log("Clique sur bouton");
event.preventDefault();
});
};
})(jQuery);
$(".lienDynamique").chargementDynamique();