How to create autocomplete form with MaterializeCss?

后端 未结 9 2147
死守一世寂寞
死守一世寂寞 2021-02-19 14:13

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:42

    Just write the Initialisation script inside $(document).ready(function(){});

    i.e.

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

提交回复
热议问题