first attempt to write usefull js code to show/hide a aviary field in the edit form

This commit is contained in:
gnuter3000 2023-07-03 23:26:38 +02:00
parent 962c6fd10b
commit 022223383e

6
static/js/bird_all.js Normal file
View file

@ -0,0 +1,6 @@
let sel = document.getElementById("id_status");
let text = sel.options[sel.selectedIndex].text;
if (text === 'In Auswilderung') {
console.log("Yes");
}