In my application, on page loads by default there is a drop-down with value '3' and three input text fields.
If user selects value '2' from drop-down then number of input text fields should be changed from 3 to 2.
If user selects value '5' from drop-down then number of input text fields should be changed from prev. value to 5.
How could I do that dynamically in Django project as I am wanted to create a form in django inside forms.py?