(function ($) { $.fn.filtreNote = function () { this.each(function() { //console.log("Test"); $(this).change(function(e) { e.preventDefault(); let value = $(this).val(); let chemin = $(this).data('path'); console.log(value); }) }) } })(jQuery);