GarGerry commited on
Commit
831e195
·
verified ·
1 Parent(s): 5f380f1

Update script.js

Browse files
Files changed (1) hide show
  1. script.js +12 -0
script.js CHANGED
@@ -1,3 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
  const amountInput = document.getElementById('amount');
2
  const fromCurrency = document.getElementById('fromCurrency');
3
  const toCurrency = document.getElementById('toCurrency');
 
1
+ document.addEventListener("DOMContentLoaded", () => {
2
+ // Terapkan Select2 pada semua elemen select
3
+ $('#fromCurrency').select2({
4
+ theme: 'default',
5
+ width: '100%'
6
+ });
7
+ $('#toCurrency').select2({
8
+ theme: 'default',
9
+ width: '100%'
10
+ });
11
+ });
12
+
13
  const amountInput = document.getElementById('amount');
14
  const fromCurrency = document.getElementById('fromCurrency');
15
  const toCurrency = document.getElementById('toCurrency');