Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to insert a placeholder text in django modelform

q = forms.CharField(label='search', 
                    widget=forms.TextInput(attrs={'placeholder': 'Search'}))
 
PREVIOUS NEXT
Tagged: #insert #placeholder #text #django #modelform
ADD COMMENT
Topic
Name
9+7 =