Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django form formatting

class MyForm(forms.Form):
    field1 = forms.CharField(widget=forms.TextInput(attrs={'class' : 'myCSSclass'}))
    field2 = forms.CharField(widget=forms.TextInput(attrs={'class' : 'myCSSclassX myCSSclass2'}))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #django #form #formatting
ADD COMMENT
Topic
Name
2+7 =