celtic34fr / select2vanilla
Adaptation de la librairie jQuery Select2 en JavaScript pur (Vanilla) / Vanilla JavaScript adaptation of the jQuery Select2 library
Package info
github.com/celtic34fr/select2vanilla
Language:JavaScript
pkg:composer/celtic34fr/select2vanilla
0.1.1
2026-10-21 08:02 UTC
Requires
None
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-21 08:08:32 UTC
README
Adaptation de la librairie jQuery Select2 en JavaScript (Vanilla) / Vanilla JavaScript adaptation of the jQuery Select2 library.
Le but est de pouvoir avoir les mêmes fonctionnalités que la librairie Select2 sans devoir utiliser jQuery. / The goal is to provide the same features as Select2 without jQuery dependency.
Documentation
Installation rapide / Quick start
<link rel="stylesheet" href="src/select2vanilla.css" /> <select id="mon-select"> <option value="fr">France</option> <option value="be">Belgique</option> </select> <script src="src/select2vanilla.js"></script> <script> new Select2Vanilla("#mon-select", { placeholder: "Sélectionner / Choose", multiple: true }); </script>
Licence / License
MIT