Answers for "how to set the placehol;der in a form in django"

0

how to insert a placeholder text in django modelform

q = forms.CharField(label='search', 
                    widget=forms.TextInput(attrs={'placeholder': 'Search'}))
Posted by: Guest on November-26-2020

Code answers related to "how to set the placehol;der in a form in django"

Python Answers by Framework

Browse Popular Code Answers by Language