Update script.js
Browse files
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');
|