How to create autocomplete form with MaterializeCss?

后端 未结 9 2494
自闭症患者
自闭症患者 2021-02-19 14:25

I am looking for autocomplete form for MaterializeCss, any plugins for this? i has try to use select2 but that\'s css not looks good

9条回答
  •  花落未央
    2021-02-19 14:30

    As per, here.

    You just need to do this simple thing (From the example there only):

    HTML:

    textsms

    JS:

    $('input.autocomplete').autocomplete({
        data: {
          "Apple": null,
          "Microsoft": null,
          "Google": null
       }
    });
    

提交回复
热议问题