Re: class for form fields

2009-05-11 Thread CrabbyPete
Thanks On May 11, 12:06 pm, David Zhou wrote: > On Mon, May 11, 2009 at 12:04 PM, CrabbyPete wrote: > > > I just started using forms and I have the following html > > Zip Code: > size="15" maxlength="15"> > > > How do you specify the class type for the input field. > > See: > > http://docs.dja

Re: class for form fields

2009-05-11 Thread David Zhou
On Mon, May 11, 2009 at 12:04 PM, CrabbyPete wrote: > > I just started using forms and I have the following html > Zip Code: size="15" maxlength="15"> > > How do you specify the class type for the input field. See: http://docs.djangoproject.com/en/dev/ref/forms/widgets/#django.forms.Widget.att

class for form fields

2009-05-11 Thread CrabbyPete
I just started using forms and I have the following html Zip Code: How do you specify the class type for the input field. I created a form class Address(form.Forms) zip = forms.CharField(label = 'Zip Code:',max_length = 15) This changes the label Zip Code: {{ form.zip }} -