INF.03-01-21.06-SG/src/js/get.js

21 lines
540 B
JavaScript
Raw Normal View History

2025-02-12 13:09:49 +00:00
document.addEventListener('DOMContentLoaded', function() {
// const imieSelect = document.getElementById('imie');
imieSelect.addEventListener('focus', function() {
fetch('get.php')
.then(response => response.json())
.then(data => {
/*
usersData = data;
imieSelect.innerHTML = "";
data.forEach(dane => {
});
*/
})
.catch(error => console.error('Error fetching data:', error));
});
});