Show or hide jQuery UI Autocomplete Combobox

I have some dropdowns on a webpage and am trying to use JQuery UI Autocomplete Comboboxes harvesters. Comboboxes work, my problem arises when I want to show or hide one of them. I can’t figure out how to do this ...

If my drop-down lists are hidden when the page loads, then there is no ui drop-down list for them. Alternatively, if I create a combo box in an event, I cannot then figure out how to hide it when it is no longer needed.

Any help would be greatly appreciated.

Here is the fiddle: http://jsfiddle.net/GhW8t/1/

The above will automatically match the "lstClients" and "lstOptions" autocomplete matches. However, I do not want lstOptions to appear when the page loads. I need to show a list based on the highlighted lstClients.

Basically, I want to know how to control the visibility from lists.

Thanks.

Solution: Ok, I sorted it out. A simple combination of the source list fields in divs will allow you to show and hide this div and all the controls inside it, including auto-update autocomplete. It took me too much time to work ...

+6
source share

Source: https://habr.com/ru/post/895867/


All Articles