13 lines
304 B
JavaScript
Executable File
13 lines
304 B
JavaScript
Executable File
// npm package: select2
|
|
// github link: https://github.com/select2/select2
|
|
|
|
$(function() {
|
|
'use strict'
|
|
|
|
if ($(".js-example-basic-single").length) {
|
|
$(".js-example-basic-single").select2();
|
|
}
|
|
if ($(".js-example-basic-multiple").length) {
|
|
$(".js-example-basic-multiple").select2();
|
|
}
|
|
}); |