Only jquery autocomplete download

I want to download the jquery autocomplete plugin, but it does not allow to load only this file, but with the core jquery, jquery position, widget, etc. scripts. But I do not want all these files to be already added to my project and work fine, so I do not want to break the current working logic.

When I tried to put the whole script with autocomplete (including core.js), it worked, but then my finifier stops working.

I also tried to select and add only the autocomplete part of the script from the full script, but that didn’t work, maybe because I am using jquery 1.7.2 and I found autocomplete 1.10.2.

Is there a way to get only the autocomplete plugin or any similar plugin that can work, how do we get other plugins from external authors?

Basically, my requirement is not completely autocomplete, I want the text field that is in focus to display a list of options that can be selected, something like drop-down list options, and also allows us to put our own value and not show the drop-down arrow list. I did all this while working with the autocomplete plugin, a problem arose when I tried to add it to my project.

This is basically a requirement

enter image description here

Any idea what I can do?

+4
source share
1 answer

You can go to the All jQuery UI Download Pages page and get the source file.

Then in the ui folder you will see separate files for each module, including jquery.ui.autocomplete.js .

I don’t know how your files are organized in your project, but keep in mind that the autocomplete module requires core , widget , position and menu . The first two must be loaded before autocomplete .

Your code should look like this:

 <script type="text/javascript" src="vendor/jquery-ui/js/jquery.ui.core.js"></script> <script type="text/javascript" src="vendor/jquery-ui/js/jquery.ui.widget.js"></script> <script type="text/javascript" src="vendor/jquery-ui/js/jquery.ui.position.js"></script> <script type="text/javascript" src="vendor/jquery-ui/js/jquery.ui.menu.js"></script> <script type="text/javascript" src="vendor/jquery-ui/js/jquery.ui.autocomplete.js"></script> 

Hope this helps!

+5
source

All Articles