开发者

Show or Hide JQuery UI Autocomplete Combobox [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 10 years ago.

I have a number of drop down lists on a webpage and am trying to use JQuery UI Autocomplete Comboboxes. The Comboboxes work, my problem comes when I want to show or hide one of them. I can't seem to work out how to do it...

If my drop down lists are hidden when the page loads, the ui comboboxes for them are not. Alternatively, if I generate the combobox on an event, I can't then work out how to hide it when it is no longer needed.

Any help would be much appreciated.

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

The above, produces the autocomplete comboboxs correct开发者_如何学编程ly implace of "lstClients" & "lstOptions". However, I don't want lstOptions to be visible when the page loads. I need to show the list based on a selection made is lstClients.

Basically, I want to know how to control the visibility of the comboboxes.

Thanks.

Solution: Ok I have sorted this. Simply wrapping the source list boxes in divs will let you show and hide that div and all the controls within it, including the autocomplete combobox. This took me far too long to work out...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜