dwm-app/static/js/updateMonsterDropdownBySelected.js

12 lines
511 B
JavaScript
Raw Normal View History

2024-02-02 17:24:53 +00:00
//function updateMonstersDropdownBySelected() {
// const selectedMonster = parent.value;
//
// // Fetch monsters data from the server based on the selected monster
2024-02-02 20:39:43 +00:00
// fetch(`/monster_info_json/${selectedMonster}`)
2024-02-02 17:24:53 +00:00
// .then(response => response.json())
// .then(data => populateDropdown(monsterDropdown, data))
// .catch(error => console.error("Error fetching monsters:", error));
//}
2024-02-02 20:39:43 +00:00
// I was using this to try to update the page when a monster
// in the breeding page is clicked