Hi, I'm playing around with newforms and I like to give the labels of my required fields a special styling using CSS. For that I need a class attribute in every label. But until now I wasn't able to figure out how to do it.
Setting a field as required doesn't give me a 'required' class or something like that when using the built-in functions for form rendering (like as_p()). Passing an additional attribute to the widget works only with the field itself. So, what does I need to do get a custom class on all labels of my required fields? - A. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---