dimanche 24 janvier 2016

How to add css to a SelectMultipleField with CheckboxInput and ListWidget [Flask/Wtforms]

I currently have a form with the following field:

field = SelectMultipleField(coerce=int, 
    option_widget=widgets.CheckboxInput(),
    widget = widgets.ListWidget(prefix_label=False)
)

When I generate the field in HTML I get a list of bulleted list of checkboxes as so:

checkboxes

and I was wondering how can I add CSS to each of the checkboxes and how I can remove the bullet points in front of each item.




Aucun commentaire:

Enregistrer un commentaire