Skip to content
Advertisement

Why django dependent dropdownn is not working

I cant tell where there is an error in my code. It just doesnt work as expected. My views.py

JavaScript

My models.

JavaScript

My forms.py

JavaScript

I have tried but it works only after I select a year and refresh manually with the year selcted, that’s when the terms appear.

I tried following the code by Vitor Freitas but couldn’t get it working. Anyone with the knowhow to assist.

Advertisement

Answer

I got it working by making corrections on the script as directed by @evergreen.

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement