Hello Djangians,
I have a select drop-down list in a form. whenever I will select an
option, it should pop-up a list containing information about the package.
Please suggest how to achieve this.
Thank You
On Thu, May 21, 2020 at 2:59 AM chaitanya orakala
wrote:
> wow... thanks Devansh. It was
wow... thanks Devansh. It was simple and easy to understand and no extra
hassle to add new language into the code.
On Thu, May 21, 2020 at 2:04 AM Devansh Chaubey
wrote:
> Hey Chaitanya ,
> You can do something like this
> In the models.py
> CHOICES=[('Basic','Basic'), ('Standard','Standard'), (
Hey Chaitanya ,
You can do something like this
In the models.py
CHOICES=[('Basic','Basic'), ('Standard','Standard'), ('Advanced','Advanced')]
class Modelname(models.Model):
pack=models.CharField(max_length=12,choices=CHOICES,blank=True) *Forms.py
class Formname(forms.ModelForm): class *meta: * mode
Thank you for your response. I see some javascript inside the form. I am
not fully aware of it. is there any template which I can use in forms??
On Thu, May 21, 2020 at 1:22 AM Vishesh Mangla
wrote:
> #template
>
>
> Volvo
> Saab
> Opel
> Audi
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>