Advertisement
Guest User

Untitled

a guest
Jul 29th, 2014
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. var autoComplete,
  2. dlg = $("#dialog"),
  3. input = $("#input");
  4.  
  5. // initialize autocomplete
  6. input.autocomplete({
  7. ...
  8. });
  9.  
  10. // get reference to autocomplete element
  11. autoComplete = input.autocomplete("widget");
  12.  
  13. // init the dialog containing the input field
  14. dlg.dialog({
  15. ...
  16. });
  17.  
  18. // move the autocomplete element after the dialog in the DOM
  19. autoComplete.insertAfter(dlg.parent());
  20.  
  21. Added: Use .ui-front instead of .zIndex() for the suggestions menu. (7d5fe02)
  22.  
  23. ul.ui-autocomplete.ui-menu {
  24. z-index: 1000;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement