Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 19 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | $(document).ready(function () { |
||
2 | |||
3 | /** |
||
4 | * Add Select2 single selection to all the divs with class .select2 |
||
5 | */ |
||
6 | $(".select2").select2({ |
||
7 | placeholder: "Select one", |
||
8 | width: '100%' |
||
9 | }); |
||
10 | |||
11 | /** |
||
12 | * Add Select2 multiple selection to all the divs with class .select2-multiple |
||
13 | */ |
||
14 | $(".select2-multiple").select2({ |
||
15 | placeholder: "Select one or more", |
||
16 | width: '100%', |
||
17 | }); |
||
18 | |||
19 | }); |