Autocomplete Without jQuery UI

后端 未结 8 989
野性不改
野性不改 2021-02-04 01:52

I\'m using jQuery in my project and I need to implement autocomplete, but I\'d like to avoid including jQuery UI widget, and hopefully use some specific external plugin. Could y

8条回答
  •  猫巷女王i
    2021-02-04 02:28

    No need to include JQuery or any other third party library.

    IP_autoComplete function will automatically concatinate field value to URL (1st parameter). For example textbox has value neeraj then arrjson.php?Name=neeraj will be triggered.

    You can use IP_autocomplete function for static value as well. Just add # sign once at starting in your string (comma sepreated). E.g: "#val1,val2,val3"

    arrjson.php should return json encoded string.

    HTML:

    
    
                                     
                  
提交回复
热议问题