skip to Main Content

Jquery – stopPropagation and preventDefault don't work with select2 for remove tags button

I want to prevent click propagation on the following element: .select2-selection__choice__remove I try this: $(document).ready(function () { $("document").on( "mouseup", ".select2-selection__choice__remove", function (event) { event.stopPropagation(); event.preventDefault(); }, ); }); The example I want to solve is this: https://jsfiddle.net/dk_dragonknight/c1ef7138/ I need that,…

VIEW QUESTION
Back To Top
Search