first attempt to write usefull js code to show/hide a aviary field in the edit form
This commit is contained in:
parent
962c6fd10b
commit
022223383e
1 changed files with 6 additions and 0 deletions
6
static/js/bird_all.js
Normal file
6
static/js/bird_all.js
Normal 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");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue