funkcje rezerw i przesuniec
This commit is contained in:
19
static/js/formularz_rezerwy.js
Normal file
19
static/js/formularz_rezerwy.js
Normal file
@@ -0,0 +1,19 @@
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
const uzyjKonta = document.getElementById('uzyj_konta');
|
||||
const kontoField = document.getElementById('konto-field');
|
||||
const uzyjBlik = document.getElementById('uzyj_blik');
|
||||
const blikField = document.getElementById('blik-field');
|
||||
|
||||
if (uzyjKonta && kontoField) {
|
||||
uzyjKonta.addEventListener('change', function() {
|
||||
kontoField.style.display = this.checked ? 'block' : 'none';
|
||||
});
|
||||
}
|
||||
|
||||
if (uzyjBlik && blikField) {
|
||||
uzyjBlik.addEventListener('change', function() {
|
||||
blikField.style.display = this.checked ? 'block' : 'none';
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user