I've been working on a form which displays a list of selected
checkboxes.I wanted to apply CSS to that that list of checkboxes.I was
using the CheckboxSelectMultiple widget to override my default form
widget.I used,
object = forms.MultipleChoiceField(label=''My_label",
widget=forms.CheckboxSelectMultiple(attrs=
{'my_classname'}))
which enables me to apply CSS to the above widget.The above widget
unpacks into a list of checkboxes as,
<ul>
<li class="My_classname">
"""
List of checkboxes
"""
</li>
</ul>
But the problem here is the class name gets applied to the <li> tag
instead of the <ul> tag.Is there a way such that the class name gets
applied to the <ul> tag and not to the <li> tag i.e it should get
expanded as,
<ul class="My_classname">
<li>
"""
List of checkboxes
"""
</li>
</ul>
Avinash
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---