Skip to content

How to use bootstrap style to datalist?! #188

@nurzhannogerbek

Description

@nurzhannogerbek

Hello! How to use bootstrap style to datalist?! As I understand its hard to use css style to datalist. So is it possible to use ul, li elements instead of datalist?

forms.py:

class SymbolForm(forms.ModelForm):
    symbol = floppyforms.CharField(widget=floppyforms.TextInput(
        datalist=['A', 'B', 'C'],
        attrs={'autocomplete': 'off)}
     ))

    class Meta:
        model = Symbol
        fields = ('symbol',)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions